mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 07:05:49 +03:00
only sync folder
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
2e03e22497
commit
cd16043508
2 changed files with 4 additions and 8 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue