X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/5480c0b52f6e81ab9d046a20743c563d75ef2dd1..e901b609baa4dd5f681e2a5257c9e504997e3377:/src/com/owncloud/android/operations/MoveFileOperation.java?ds=sidebyside diff --git a/src/com/owncloud/android/operations/MoveFileOperation.java b/src/com/owncloud/android/operations/MoveFileOperation.java index a4838ecd..63856c37 100644 --- a/src/com/owncloud/android/operations/MoveFileOperation.java +++ b/src/com/owncloud/android/operations/MoveFileOperation.java @@ -80,6 +80,9 @@ public class MoveFileOperation extends SyncOperation { /// 2. remote move String targetPath = mTargetParentPath + mFile.getFileName(); + if (mFile.isFolder()) { + targetPath += OCFile.PATH_SEPARATOR; + } MoveRemoteFileOperation operation = new MoveRemoteFileOperation( mSrcPath, targetPath, @@ -89,8 +92,7 @@ public class MoveFileOperation extends SyncOperation { /// 3. local move if (result.isSuccess()) { - // TODO work in progress - //getStorageManager().moveLocalFile(mFile, targetPath); + getStorageManager().moveLocalFile(mFile, targetPath, mTargetParentPath); } // TODO handle ResultCode.PARTIAL_MOVE_DONE in client Activity, for the moment