aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]src/com/cyanogenmod/filemanager/commands/secure/MoveCommand.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/filemanager/commands/secure/MoveCommand.java b/src/com/cyanogenmod/filemanager/commands/secure/MoveCommand.java
index 0a7e09a0..0ee0a7e3 100644..100755
--- a/src/com/cyanogenmod/filemanager/commands/secure/MoveCommand.java
+++ b/src/com/cyanogenmod/filemanager/commands/secure/MoveCommand.java
@@ -113,6 +113,13 @@ public class MoveCommand extends Program implements MoveExecutable {
if (!d.exists()) {
throw new ExecutionException("Failed to rename file or directory", ex);
}
+ if (s.exists() && d.exists()) {
+ if (!FileHelper.deleteFileOrFolder(s)) {
+ if (isTrace()) {
+ Log.v(TAG, "File copied successfully but not deleted"); //$NON-NLS-1$
+ }
+ }
+ }
}
}