aboutsummaryrefslogtreecommitdiff
path: root/src/com/cyanogenmod/filemanager/commands/java/MoveCommand.java
Commit message (Collapse)AuthorAgeFilesLines
* Improve copy/move performance with nio and reintroduce cancel.Matt Garnes2015-08-121-2/+2
| | | | | | | | | | | | | | Utilize FileChannel.transferFrom to copy files faster. Chunk the file transfer so that we can check between each chunk if the user has cancelled the copy. In my tests copying a large file (650MB), this improved performance by 45%. Also, bring the cancel feature back for non secure storage. Fixes QRDL-976. Change-Id: I112cee7b9dfe682a438516f7f938dfd7538f1efb
* Implement ability to cancel file copy.Martin Brabham2015-04-131-3/+5
| | | | | | | | | | - Short circuit Java CopyCommand for move/copy when the user cancels the dialog. - Bubble up CancelledOperationException when the Cancel/Move operation is cancelled. Handle cancellation differently than success. Change-Id: I3e4426aaccf42e12bf299041d489e72b3b76a626 (cherry picked from commit 7e13ec2fa4fc052c2a880a8dba8ed871b3bc10ca)
* CMFileManager: Fixes for non-rooted devicesJorge Ruesga2012-11-131-5/+28
| | | | | | | | | | | | | Various fixes for non-rooted devices running under java console: * Improve navigation (caching unsused data on chrooted mode: aids, mountpoints, ...) * Editor: Don't ask user to gain privileges (non rooted devices never can gain privileged access) * Move common file operations to FileHelper * MoveCommand: As shell console, java console doesn't allow to move between filesystems. Use a copy-delete operation when renameTo is not allowed. * On non-rooted devices, not allow to change to other access mode. Change-Id: I7ae8b4f4203fc8a20f498e43f45c0a956731b02e
* CMFileManager: Fix mv operation on Cross-device link failureJorge Ruesga2012-11-051-1/+9
| | | | | | | | | | | | | | Issue https://github.com/jruesga/CMFileManager/issues/31. The busybox mv command returns a failure when files are moved between filesystem (Cross-device link failure). This changes fix this failure by: * Replace mv command for a "mv or cp+rm" operation. * rm operation occurs over source mount point so this need to be mounted prior to execute this new command. * Fix the stderr buffer filling on error. Change-Id: If113ad810e7daffeb8379589789b2855eda14908
* Change application name to 'File Manager' (issue #20)jruesga2012-10-261-0/+102
Full refactoring of package from explorer to filemanager