updateOCVersion();
mCurrentSyncTime = System.currentTimeMillis();
if (!mCancellation) {
- synchronizeFolder(getStorageManager().getFileByPath(OCFile.PATH_SEPARATOR), true);
+ synchronizeFolder(getStorageManager().getFileByPath(OCFile.ROOT_PATH), true);
} else {
Log_OC.d(TAG, "Leaving synchronization before synchronizing the root folder because cancelation request");
int i;
for (i=0; i < files.size() && !mCancellation; i++) {
OCFile newFile = files.get(i);
- if (newFile.isDirectory()) {
+ if (newFile.isFolder()) {
synchronizeFolder(newFile, false);
}
}