-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BugFix - Sync Nested Folder #13974
base: master
Are you sure you want to change the base?
BugFix - Sync Nested Folder #13974
Conversation
ba05f94
to
aa1537f
Compare
Signed-off-by: alperozturk <[email protected]>
aa1537f
to
aebd7bb
Compare
blue-Light-Screenshot test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/13974-Screenshot-blue-Light-12-17 |
@@ -414,23 +413,21 @@ private void classifyFileForLaterSyncOrDownload(OCFile remoteFile, OCFile localF | |||
|
|||
|
|||
private void prepareOpsFromLocalKnowledge() throws OperationCancelledException { | |||
List<OCFile> children = getStorageManager().getFolderContent(mLocalFolder, false); | |||
List<OCFile> children = getStorageManager().getAllFilesRecursivelyInsideFolder(mLocalFolder); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to have nested folder sync, we should start with SynchronizeFolderOperation on folders, but not only on files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SynchronizeFolderOperation needs to be used.
How to Test?
The sync folder action should sync all files within the selected folder, not just those one level below.