+ */
+ }
+
+
+ String parentPath = (new File(mFile.getRemotePath())).getParent();
+ parentPath = (parentPath.endsWith(OCFile.PATH_SEPARATOR))
+ ? parentPath
+ : parentPath + OCFile.PATH_SEPARATOR;
+
+ mNewPath = mNewParentPath + mFile.getFileName();
+ if (mFile.isFolder() && !mNewPath.endsWith(OCFile.PATH_SEPARATOR)) {
+ mNewPath += OCFile.PATH_SEPARATOR;
+ }
+
+ // check local overwrite
+ if (getStorageManager().getFileByPath(mPath) != null) {
+ return new RemoteOperationResult(ResultCode.INVALID_OVERWRITE);