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:
stevenlele
2024-01-09 13:49:36 +08:00
committed by ᴍᴏᴏɴD4ʀᴋ
parent 368e2f50a8
commit 07561f56fa
4 changed files with 111 additions and 63 deletions
-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)
}