feat: improve extension parsing (#235)

* feat: improve extension parsing

* refactor: Refactor extension parsing and update file names.

- Refactor extension parsing function for clarity and DRYness
- Update name of a file to "Secure Preferences"
- Add TODO comment for future work on extension files and folders
- Remove unnecessary file write operation and import statement

---------

Co-authored-by: moonD4rk <moond4rk13@gmail.com>
This commit is contained in:
stevenleleandmoonD4rk authored and ᴍᴏᴏɴD4ʀᴋ committed 2024-01-09 18:10:14 +08:00
1 parent 368e2f50a8
commit 07561f56fa
4 files changed
+111 -63

No files matched your search

-3
View File
@@ -85,9 +85,6 @@ func (c *Chromium) copyItemToLocal() error {
if i == item.ChromiumSessionStorage {
err = fileutil.CopyDir(path, filename, "lock")
}
if i == item.ChromiumExtension {
err = fileutil.CopyDirHasSuffix(path, filename, "manifest.json")
}
default:
err = fileutil.CopyFile(path, filename)
}