feat: add Safari bookmark and download extraction from plist (#567)

* feat: add Safari bookmark and download extraction from plist files
* test: add nested folder test for bookmark tree traversal
Part of #565
This commit is contained in:
Roger
2026-04-12 01:50:54 +08:00
committed by GitHub
parent 7bf1759dd9
commit d105a1f488
9 changed files with 458 additions and 1 deletions
+3 -1
View File
@@ -19,7 +19,9 @@ func file(rel string) sourcePath { return sourcePath{rel: filepath.FromSlash(rel
// Each category maps to one or more candidate paths tried in priority order;
// the first existing path wins.
var safariSources = map[types.Category][]sourcePath{
types.History: {file("History.db")},
types.History: {file("History.db")},
types.Bookmark: {file("Bookmarks.plist")},
types.Download: {file("Downloads.plist")},
types.Cookie: {
// macOS 14+ (containerized Safari)
file("../Containers/com.apple.Safari/Data/Library/Cookies/Cookies.binarycookies"),