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

[Suggestion] Create remote directory structure #14

Open
nor-os opened this issue May 5, 2021 · 1 comment
Open

[Suggestion] Create remote directory structure #14

nor-os opened this issue May 5, 2021 · 1 comment

Comments

@nor-os
Copy link

nor-os commented May 5, 2021

Hi, did you think about creating the remote directory structure instead of printing, that it doesn't exist?

Should be quite easy to add:
sftp.makedirs(remotepath, mode=777)
on line 130/131, where it currently says
print('Destination directory does not exist.') return

@nor-os
Copy link
Author

nor-os commented May 5, 2021

I forgot to mention - next line (132) should be
sftp.chdir(remotepath)

then

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

1 participant