Right now, after installation of updates changing Room structure, folders can disappear.
It would be nice to automatically find all existing ARK folders in the system right after installation.
For this, it's possible to simply scan the whole filesystem for presence of hidden ARK files.
This won't help to restore favorite folders though. That's why we should also store information about favorites inside of root folders.
Let's also re-organize hidden ARK files:
right now, in every root folder we have only .ark-tags file (for tag storage)
we will add more hidden files for other features, e.g. versions, index and now favorites
all ARK files should be stored in hidden folder .ark
.ark-tags -> .ark/tags
.ark/favorites for storing favorite folders
During first run after installation, we need to find all .ark folders in the filesystem and import them as roots.
For each root folder, we need to extract favorite folders from .ark/favorites.
Right now, after installation of updates changing Room structure, folders can disappear. It would be nice to automatically find all existing ARK folders in the system right after installation. For this, it's possible to simply scan the whole filesystem for presence of hidden ARK files.
This won't help to restore favorite folders though. That's why we should also store information about favorites inside of root folders. Let's also re-organize hidden ARK files:
.ark-tags
file (for tag storage).ark
.ark-tags
->.ark/tags
.ark/favorites
for storing favorite foldersDuring first run after installation, we need to find all
.ark
folders in the filesystem and import them as roots. For each root folder, we need to extract favorite folders from.ark/favorites
.