Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that same name subdirs aren't omitted when doing SFTP #253

Merged
merged 3 commits into from
Jul 5, 2016

Conversation

hierynomus
Copy link
Owner

@dkocher Could you verify whether CyberDuck relies on the following behaviour and what your preference would be...

Currently when an SFTP copy operation starts, we do a check to see whether the source is a directory, and whether the given destination is a directory of the same name. In that case we copy the contents of the source into the destination. If the names however do not match, we upload the source directory itself into the destination (creating a subdir).

I know we've worked around this in Overthere already (see: https://github.com/xebialabs/overthere/blob/master/src/main/java/com/xebialabs/overthere/ssh/SshSftpFile.java#L143), as the other protocols behave differently. So I was wondering whether we should remove this check, or maybe make it configurable to always upload the contents of the source to the destination.

@dkocher
Copy link
Contributor

dkocher commented Jul 4, 2016

@hierynomus We do not depend on SFTPFileTransfer in Cyberduck therefore I have no strong opinion on this.

@hierynomus hierynomus added this to the 0.17.0 milestone Jul 5, 2016
@hierynomus hierynomus merged commit 1ab72b7 into master Jul 5, 2016
@hierynomus hierynomus deleted the issue-252 branch July 5, 2016 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants