Skip to content

Commit

Permalink
fix: skip chromium-based browser 'def' dir (#448)
Browse files Browse the repository at this point in the history
Co-authored-by: Aquilao <Aquilao@outlook>
  • Loading branch information
Aquilao and Aquilao authored Nov 8, 2024
1 parent 347f0ac commit 1d8e847
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions browser/chromium/chromium.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ func chromiumWalkFunc(items []types.DataType, multiItemPaths map[string]map[type
if strings.Contains(path, "Snapshot") {
continue
}
if strings.Contains(path, "def") {
continue
}
profileFolder := fileutil.ParentBaseDir(path)
if strings.Contains(filepath.ToSlash(path), "/Network/Cookies") {
profileFolder = fileutil.BaseDir(strings.ReplaceAll(filepath.ToSlash(path), "/Network/Cookies", ""))
Expand Down

0 comments on commit 1d8e847

Please sign in to comment.