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

scp.upload fails if there is a directory symlinked into the local path #35

Open
atheiman opened this issue Nov 21, 2017 · 2 comments
Open

Comments

@atheiman
Copy link

Given this code:

ssh.scp.upload('/local/path', '/remote/path', recursive: true)

It looks like if there is a symlink at /local/path/symlink pointing to another directory on the local filesystem, scp upload fails.

this was discovered in test-kitchen/test-kitchen#1319. In that issue there is a test-kitchen output that shows the scp failure, but I don't yet have a clean example outside of test-kitchen.

@LeoSnets
Copy link

I am running into the same issue. Is there a work around?

@atheiman
Copy link
Author

@LeoSnets you might try net-sftp, but no I have not found a workaround for this. I assume the code fix wouldn’t be too bad, but I haven’t looked.

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

No branches or pull requests

2 participants