Skip to content

Commit

Permalink
Implement #689
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Oct 19, 2018
1 parent d063fd0 commit 9167b19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion IM/SSH.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,9 @@ def sftp_mkdir(self, directory):
sftp.stat(directory)
res = False
except:
sftp.mkdir(directory)
mode = LIBSSH2_SFTP_S_IRUSR | LIBSSH2_SFTP_S_IWUSR | \
LIBSSH2_SFTP_S_IRGRP | LIBSSH2_SFTP_S_IROTH
sftp.mkdir(directory, mode)
res = True

return res
Expand Down

0 comments on commit 9167b19

Please sign in to comment.