+ // Properties of local folder
+ OCFile localParent = mStorageManager.getFileById(1);
+ if (localParent == null || !(parent.getEtag().equalsIgnoreCase(localParent.getEtag()))) {
+ mStorageManager.saveFile(parent);
+ mParentId = parent.getFileId();
+ dirChanged = true;
+ }
+ }
+ else if (! mRemotePath.equalsIgnoreCase(OCFile.PATH_SEPARATOR)){
+ dirChanged = false;
+ WebdavEntry we = new WebdavEntry(resp.getResponses()[0], client.getBaseUri().getPath());
+
+ // Properties of server folder
+ OCFile parent = fillOCFile(we);
+ // Properties of local folder
+ OCFile localParent = mStorageManager.getFileByPath(mRemotePath);
+ if (localParent == null || !(parent.getEtag().equalsIgnoreCase(localParent.getEtag()))) {
+ dirChanged = true;
+ }