From 1d8e8474f866b3005baa033c3fab9d9312e2c939 Mon Sep 17 00:00:00 2001 From: Aquilao Official Date: Fri, 8 Nov 2024 14:22:51 +0800 Subject: [PATCH] fix: skip chromium-based browser 'def' dir (#448) Co-authored-by: Aquilao --- browser/chromium/chromium.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/browser/chromium/chromium.go b/browser/chromium/chromium.go index ed1e48e9..b0de100b 100644 --- a/browser/chromium/chromium.go +++ b/browser/chromium/chromium.go @@ -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", ""))