From 7676605c9608c624cd078fd9b63ef8236c4c16ae Mon Sep 17 00:00:00 2001 From: "kai.cao" Date: Mon, 7 Sep 2015 15:12:24 +0800 Subject: [PATCH] [CMFileManager] Fix fail to move a folder Fix fail to move a folder to another folder when the one folder name contains the another folder name. [Reproduce] 1. Create a folder named such as aaa 2. Create another folder named such as aaab 3. Copy or Move the folder aaa to folder aaab The Operation Fail Change-Id: I27996f9b9530001fe01eddf80a0cac7a8531c163 --- src/com/cyanogenmod/filemanager/ui/policy/CopyMoveActionPolicy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/cyanogenmod/filemanager/ui/policy/CopyMoveActionPolicy.java b/src/com/cyanogenmod/filemanager/ui/policy/CopyMoveActionPolicy.java index 73d08ee..f893635 100755 --- a/src/com/cyanogenmod/filemanager/ui/policy/CopyMoveActionPolicy.java +++ b/src/com/cyanogenmod/filemanager/ui/policy/CopyMoveActionPolicy.java @@ -558,7 +558,7 @@ public final class CopyMoveActionPolicy extends ActionsPolicy { int cc = files.size(); for (int i = 0; i < cc; i++) { LinkedResource linkRes = files.get(i); - String src = linkRes.mSrc.getAbsolutePath(); + String src = FileHelper.addTrailingSlash(linkRes.mSrc.getAbsolutePath()); String dst = linkRes.mDst.getAbsolutePath(); // 1.- Current directory can't be moved -- 2.11.0