-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust remote_only argument to only apply to copying plain files
This commit adjusts the behavior of the "remote_only" argument in SFTPClient copy() and mcopy() to only raise an error when attempting to copy a plain file on a system which doesn't support remote copy. Other operations during the copy such as creating directories and symlinks and setting attributes will always be allowed. When an error handler is set, it will be called once for each plain file copy which is attempted when remote_only is set and the server doesn't support remote copy. The exceptions will include the source and destination pathname, to allow other forms of copy to be performed.
- Loading branch information
Showing
2 changed files
with
21 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters