• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/CMFileManager


Commit MetaInfo

Revision25bcc733b630c3ee032b185ab9adfbbd99e4cbbc (tree)
Time2015-10-16 08:12:31
Authorroot <srinivas.p031@gmai...>
CommiterGerrit Code Review

Log Message

Secure file moving issue fix

Change-Id: I684124bb32747a39d772b41c48d62c4c236b3ed2

Change Summary

Incremental Difference

--- 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 {
113113 if (!d.exists()) {
114114 throw new ExecutionException("Failed to rename file or directory", ex);
115115 }
116+ if (s.exists() && d.exists()) {
117+ if (!FileHelper.deleteFileOrFolder(s)) {
118+ if (isTrace()) {
119+ Log.v(TAG, "File copied successfully but not deleted"); //$NON-NLS-1$
120+ }
121+ }
122+ }
116123 }
117124 }
118125