Loading res/xml/command_list.xml +1 −1 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ <command commandId="cp" commandPath="/system/xbin/cp" commandArgs="-af %1$s %2$s" /> <command commandId="link" commandPath="/system/bin/ln" commandArgs="-s %1$s %2$s" /> <command commandId="mkdir" commandPath="/system/bin/mkdir" commandArgs="-p %1$s" /> <command commandId="mv" commandPath="/system/bin/mv" commandArgs="%1$s %2$s" /> <command commandId="mv" commandPath="/system/bin/mv" commandArgs="%1$s %2$s || ( /system/xbin/cp -af %1$s %2$s && /system/bin/rm -R %1$s )" /> <command commandId="rm" commandPath="/system/bin/rm" commandArgs="%1$s" /> <command commandId="rmdir" commandPath="/system/bin/rm" commandArgs="-R %1$s" /> Loading src/com/cyanogenmod/filemanager/commands/WritableExecutable.java +10 −3 Original line number Diff line number Diff line Loading @@ -25,9 +25,16 @@ import com.cyanogenmod.filemanager.model.MountPoint; public interface WritableExecutable extends SyncResultExecutable { /** * Method that return the mount point that the program use to write. * Method that return the source mount point that the program use to write. * * @return MountPoint The mount point reference. * @return MountPoint The source mount point reference. */ MountPoint getWritableMountPoint(); MountPoint getSrcWritableMountPoint(); /** * Method that return the destination mount point that the program use to write. * * @return MountPoint The destination mount point reference. */ MountPoint getDstWritableMountPoint(); } src/com/cyanogenmod/filemanager/commands/java/CopyCommand.java +9 −1 Original line number Diff line number Diff line Loading @@ -100,7 +100,15 @@ public class CopyCommand extends Program implements CopyExecutable { * {@inheritDoc} */ @Override public MountPoint getWritableMountPoint() { public MountPoint getSrcWritableMountPoint() { return null; } /** * {@inheritDoc} */ @Override public MountPoint getDstWritableMountPoint() { return MountPointHelper.getMountPointFromDirectory(this.mDst); } Loading src/com/cyanogenmod/filemanager/commands/java/CreateDirCommand.java +9 −1 Original line number Diff line number Diff line Loading @@ -95,7 +95,15 @@ public class CreateDirCommand extends Program implements CreateDirExecutable { * {@inheritDoc} */ @Override public MountPoint getWritableMountPoint() { public MountPoint getSrcWritableMountPoint() { return null; } /** * {@inheritDoc} */ @Override public MountPoint getDstWritableMountPoint() { return MountPointHelper.getMountPointFromDirectory(this.mPath); } } src/com/cyanogenmod/filemanager/commands/java/CreateFileCommand.java +9 −1 Original line number Diff line number Diff line Loading @@ -105,7 +105,15 @@ public class CreateFileCommand extends Program implements CreateFileExecutable { * {@inheritDoc} */ @Override public MountPoint getWritableMountPoint() { public MountPoint getSrcWritableMountPoint() { return null; } /** * {@inheritDoc} */ @Override public MountPoint getDstWritableMountPoint() { return MountPointHelper.getMountPointFromDirectory(this.mPath); } } Loading
res/xml/command_list.xml +1 −1 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ <command commandId="cp" commandPath="/system/xbin/cp" commandArgs="-af %1$s %2$s" /> <command commandId="link" commandPath="/system/bin/ln" commandArgs="-s %1$s %2$s" /> <command commandId="mkdir" commandPath="/system/bin/mkdir" commandArgs="-p %1$s" /> <command commandId="mv" commandPath="/system/bin/mv" commandArgs="%1$s %2$s" /> <command commandId="mv" commandPath="/system/bin/mv" commandArgs="%1$s %2$s || ( /system/xbin/cp -af %1$s %2$s && /system/bin/rm -R %1$s )" /> <command commandId="rm" commandPath="/system/bin/rm" commandArgs="%1$s" /> <command commandId="rmdir" commandPath="/system/bin/rm" commandArgs="-R %1$s" /> Loading
src/com/cyanogenmod/filemanager/commands/WritableExecutable.java +10 −3 Original line number Diff line number Diff line Loading @@ -25,9 +25,16 @@ import com.cyanogenmod.filemanager.model.MountPoint; public interface WritableExecutable extends SyncResultExecutable { /** * Method that return the mount point that the program use to write. * Method that return the source mount point that the program use to write. * * @return MountPoint The mount point reference. * @return MountPoint The source mount point reference. */ MountPoint getWritableMountPoint(); MountPoint getSrcWritableMountPoint(); /** * Method that return the destination mount point that the program use to write. * * @return MountPoint The destination mount point reference. */ MountPoint getDstWritableMountPoint(); }
src/com/cyanogenmod/filemanager/commands/java/CopyCommand.java +9 −1 Original line number Diff line number Diff line Loading @@ -100,7 +100,15 @@ public class CopyCommand extends Program implements CopyExecutable { * {@inheritDoc} */ @Override public MountPoint getWritableMountPoint() { public MountPoint getSrcWritableMountPoint() { return null; } /** * {@inheritDoc} */ @Override public MountPoint getDstWritableMountPoint() { return MountPointHelper.getMountPointFromDirectory(this.mDst); } Loading
src/com/cyanogenmod/filemanager/commands/java/CreateDirCommand.java +9 −1 Original line number Diff line number Diff line Loading @@ -95,7 +95,15 @@ public class CreateDirCommand extends Program implements CreateDirExecutable { * {@inheritDoc} */ @Override public MountPoint getWritableMountPoint() { public MountPoint getSrcWritableMountPoint() { return null; } /** * {@inheritDoc} */ @Override public MountPoint getDstWritableMountPoint() { return MountPointHelper.getMountPointFromDirectory(this.mPath); } }
src/com/cyanogenmod/filemanager/commands/java/CreateFileCommand.java +9 −1 Original line number Diff line number Diff line Loading @@ -105,7 +105,15 @@ public class CreateFileCommand extends Program implements CreateFileExecutable { * {@inheritDoc} */ @Override public MountPoint getWritableMountPoint() { public MountPoint getSrcWritableMountPoint() { return null; } /** * {@inheritDoc} */ @Override public MountPoint getDstWritableMountPoint() { return MountPointHelper.getMountPointFromDirectory(this.mPath); } }