fix: skip chromium-based browser 'def' dir (#448)

Co-authored-by: Aquilao <Aquilao@outlook>
This commit is contained in:
Aquilao Official 2024-11-08 14:22:51 +08:00 committed by ᴍᴏᴏɴD4ʀᴋ
parent d0967a362e
commit 0761fc39f2
1 changed files with 3 additions and 0 deletions

View File

@ -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", ""))