}\r
if (getStorageManager().getFileByPath(file.getRemotePath()) != null)\r
file.setKeepInSync(getStorageManager().getFileByPath(file.getRemotePath()).keepInSync());\r
+ \r
//getStorageManager().saveFile(file);\r
updatedFiles.add(file);\r
if (parentId == 0)\r
for (int i=0; i < files.size() && !mCancellation; i++) {\r
OCFile newFile = files.get(i);\r
if (newFile.getMimetype().equals("DIR")) {\r
- fetchData(getUri().toString() + WebdavUtils.encode(newFile.getRemotePath()), syncResult, newFile.getFileId());\r
+ fetchData(getUri().toString() + WebdavUtils.encodePath(newFile.getRemotePath()), syncResult, newFile.getFileId());\r
}\r
}\r
if (mCancellation) Log.d(TAG, "Leaving " + uri + " because cancellation request");\r