From 29970d7752f19e26fb701dcb32dc716c436f6af4 Mon Sep 17 00:00:00 2001 From: slimwang Date: Thu, 11 Aug 2022 20:59:56 +0800 Subject: [PATCH] fix:'cannot access the file ' Error fix:'The process cannot access the file because it is being used by another process' Error --- internal/browingdata/browsingdata.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/browingdata/browsingdata.go b/internal/browingdata/browsingdata.go index 4c244b0..b8aa751 100644 --- a/internal/browingdata/browsingdata.go +++ b/internal/browingdata/browsingdata.go @@ -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() } }