Opened on Nov 8, 2015 at 3:59:23 PM
Closed on Nov 9, 2015 at 8:46:48 AM
#9108 closed enhancement (wontfix)
Use operating system tools for recursive operations
Reported by: | Coder256 | Owned by: | dkocher |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | sftp | Version: | 4.7.3 |
Severity: | major | Keywords: | recursive folder bug |
Cc: | Architecture: | Intel | |
Platform: | Mac OS X 10.10 |
Description
Actions that are taken on folders that are set to recurse are ineffective using SFTP. For example, changing permissions or deleting folders take forever. This is because, looking at the logs, Cyberduck is doing this one file at a time. Here is the log for deleting a folder named "test" with four files inside ("foo", "bar", "baz", and "qux"):
OPENDIR READDIR READDIR CLOSE REMOVE REMOVE REMOVE REMOVE RMDIR OPENDIR READDIR READDIR
And on the bottom of the window, the status shows it deleting every file individually.
SFTP seems unable to remove the directory and all its files (even when run from the command line), but what does often work is SSH'ing in to the server and then running:
rm -rf <directory>
Or, for permissions:
chmod -R <permission> <directory>
This doesn't always work (it is OS-dependent), but it should be presented to the user as an option.
Change History (2)
comment:1 Changed on Nov 9, 2015 at 8:43:54 AM by dkocher
- Summary changed from Recursive actions on folders are ineffective and slow with SFTP to Use operating system tools for recursive operations
comment:2 Changed on Nov 9, 2015 at 8:46:48 AM by dkocher
- Resolution set to wontfix
- Status changed from new to closed
- Type changed from defect to enhancement
Where there is support for batch operations for delete such as in S3 and OpenStack Swift we make use of but do not intend to workaround protocol limitations introducing native dependencies.