ARK-Builders / ARK-Navigator

Android app for navigation through your data
MIT License
15 stars 15 forks source link

Merging root folders under new root #112

Open melvin4u445 opened 3 years ago

melvin4u445 commented 3 years ago

Related to #111

Adding DCIM/Screenshots as a root before adding DCIM as a root folder is possible even though it's not possible the other way. How do we handle this scenario? Should we automatically add DCIM/Screenshots as a Favorite folder instead, when this happens?

kirillt commented 3 years ago

Right now, we don't handle this scenario. What we can do is:

  1. Add the parent as new root.
  2. Convert the child to favorite.
  3. Move tags storage (.ark-tags file) into new root folder.
  4. In case we have several children added as roots already, we need to merge several tags storage into single one.

Good point about content addressing we use for storing tags data is that we don't need to recalculate storage files themselves — only to merge tag entries.

kirillt commented 2 years ago

We need to provide a user with these operations:

During attempt of adding new root, we must check if it is parent of any other existing root and call one of these operations automatically (with consent of the user).