fix:'cannot access the file ' Error

fix:'The process cannot access the file because it is being used by another process' Error
This commit is contained in:
slimwang 2022-08-11 20:59:56 +08:00 committed by GitHub
parent f26fb68d27
commit 29970d7752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ func (d *Data) Output(dir, browserName, flag string) {
log.Errorf("%s write to file %s error %s", source.Name(), filename, err.Error())
}
log.Noticef("output to file %s success", path.Join(dir, filename))
f.Close()
}
}