only sync folder

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-10-26 08:33:34 +02:00 committed by Alper Öztürk
parent 2e03e22497
commit cd16043508
2 changed files with 4 additions and 8 deletions

View file

@ -54,13 +54,6 @@ class InternalTwoWaySyncWork(
return checkFreeSpaceResult
}
// do not attempt to sync root folder
if (folder.remotePath == OCFile.ROOT_PATH) {
folder.internalFolderSyncTimestamp = -1L
fileDataStorageManager.saveFile(folder)
continue
}
Log_OC.d(TAG, "Folder ${folder.remotePath}: started!")
val operation = SynchronizeFolderOperation(context, folder.remotePath, user, fileDataStorageManager)
.execute(context)

View file

@ -2643,7 +2643,10 @@ public class FileDataStorageManager {
List<OCFile> files = new ArrayList<>(fileEntities.size());
for (FileEntity fileEntity : fileEntities) {
files.add(createFileInstance(fileEntity));
OCFile file = createFileInstance(fileEntity);
if (file.isFolder() && !file.isRootDirectory()) {
files.add(file);
}
}
return files;