You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The selective sync might become a very powerful but there are some troubles with it atm.
Currently it's not possible to sync the root using selective sync.
So let's say we have this tree:
Documents
├───Keys
├───School
└───Work
If I decide to sync the Documents folder and enable the Selective Sync I cannot sync the files inside the Documents folder as only Keys, Schook and Work can be selected when hitting Select folder(s).
Also excluding sub-nodes is not possible. If we assume we have this tree:
Personal Files
└─── [x] Documents
├─── [ ] Keys
├─── [x] School
└─── [x] Work
If I decide to sync the "Personal Files" and I want to perform a selective sync of Documents, School and Work, but not Keys though I can deselect Keys in the Select folder(s) dialogue but it still would sync Keys because Documents is selected.
One more case that isn't covered using the current implementation of the selective sync:
Think of implementing some sort of "ExcludedRoots" it wouldn't be possible to include subnodes of them:
Personal Files
└─── [x] Documents
├─── [ ] Keys
│ ├─── [x] KeePass
│ └─── [ ] SSH
├─── [x] School
└─── [x] Work
If I would want to exclude Keys but include the KeePass directory it wouldn't be possible as the parent node Keys is excluded already.
Conclusion and Examples
This leads me to following recommendation:
Rework the SelectireRoots-option of the config-schema to look the following:
The entries would then be processed by the order of their appearance, which means:
"/" is included
"/Keys" is excluded, but...
..."/Keys/KeePass" is included
Also I'd recommend to enable the checkboxes in the Select folder(s) dialogue to match the current config. That way the initial state of said dialoue would represent to current settings.
Another way the schema could be reworked would be some sort of an "Action"-field to set a single action or an array of actions.
This would allow to implement more actions yet to come for single folders:
General
The selective sync might become a very powerful but there are some troubles with it atm.
Currently it's not possible to sync the root using selective sync.
So let's say we have this tree:
If I decide to sync the
Documents
folder and enable the Selective Sync I cannot sync the files inside theDocuments
folder as onlyKeys
,Schook
andWork
can be selected when hittingSelect folder(s)
.Also excluding sub-nodes is not possible. If we assume we have this tree:
If I decide to sync the "Personal Files" and I want to perform a selective sync of
Documents
,School
andWork
, but notKeys
though I can deselectKeys
in theSelect folder(s)
dialogue but it still would syncKeys
becauseDocuments
is selected.One more case that isn't covered using the current implementation of the selective sync:
Think of implementing some sort of "ExcludedRoots" it wouldn't be possible to include subnodes of them:
If I would want to exclude
Keys
but include theKeePass
directory it wouldn't be possible as the parent nodeKeys
is excluded already.Conclusion and Examples
This leads me to following recommendation:
Rework the
SelectireRoots
-option of the config-schema to look the following:The entries would then be processed by the order of their appearance, which means:
"/"
is included"/Keys"
is excluded, but..."/Keys/KeePass"
is includedAlso I'd recommend to enable the checkboxes in the
Select folder(s)
dialogue to match the current config. That way the initial state of said dialoue would represent to current settings.Another example:
"/"
is included"/Keys/KeePass"
is included"/Keys"
is excluded which causes"/Keys/KeePass"
to be excluded as wellThe text was updated successfully, but these errors were encountered: