Commit 998e31e0 authored by vince-bourgmayer's avatar vince-bourgmayer
Browse files

make this exact copy of oreo version

parent 940af700
......@@ -64,6 +64,7 @@ public class ListFileRemoteOperation extends RemoteOperation {
//Get CurrentSyncedFolder
SyncedFolder syncedFolder = mSyncedFolderIterator.next();
//If folder isn't to be scan remotly, ignore it
if(!syncedFolder.isScanRemote()) continue;
if(syncedFolder.getId() == -1) {
......@@ -76,6 +77,7 @@ public class ListFileRemoteOperation extends RemoteOperation {
Log.w(TAG, "syncedFolder "+syncedFolder.getRemoteFolder()+" doesn't have a valid ID");
}
}
//Create ReadRemoteOperation
LightReadFolderRemoteOperation operation = new LightReadFolderRemoteOperation(syncedFolder.getRemoteFolder(), DEPTH_1, false);
RemoteOperationResult result = operation.execute(ownCloudClient);
......@@ -120,7 +122,6 @@ public class ListFileRemoteOperation extends RemoteOperation {
syncedFolder.setLastEtag(directory.getEtag()).setToSync(true);
atLeastOneDirAsChanged = true;
}
}//Last else correspond to error 404 at LightReadFolderRemoteOperation (see below)
}else{ //Result isn't a success
if(result.getHttpCode() == 404){ //File not found
......@@ -142,6 +143,7 @@ public class ListFileRemoteOperation extends RemoteOperation {
}
Log.w(TAG, "LightReadFolderRemoteOperation failed : http " + result.getHttpCode() + ", " + result.getLogMessage()+" => Ignored");
}
} //End of loop
finalResult = new RemoteOperationResult(RemoteOperationResult.ResultCode.OK);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment