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

Make ScpMethods.createRemoteDirectory() supports mkdir -p #52

Closed
adisar opened this issue Aug 17, 2014 · 1 comment
Closed

Make ScpMethods.createRemoteDirectory() supports mkdir -p #52

adisar opened this issue Aug 17, 2014 · 1 comment

Comments

@adisar
Copy link

adisar commented Aug 17, 2014

In order to create parent directories as needed

@aadamovich
Copy link
Member

createRemoteDirectory uses SCP channel to create directories. That channel does not support any options during directory creation. And I think it's not needed. You should take care of creating parent directories with proper permissions before copying the files. Otherwise there is a risk that some missing parents actually are in directories where you don't have permissions and it will fail anyway. Just use exec 'mkdir -p parent_dir' before copying the files.

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