summaryrefslogtreecommitdiff
path: root/modules/ssh
diff options
context:
space:
mode:
authorArtyom V. Poptsov <poptsov.artyom@gmail.com>2015-10-28 07:15:16 +0300
committerArtyom V. Poptsov <poptsov.artyom@gmail.com>2015-10-28 07:15:16 +0300
commitb08b221ad8d8786ad2203602bcf194ec70447b66 (patch)
tree65bb4f0e40c0c62813068371eb9e1960aab4122b /modules/ssh
parentsftp.scm (sftp-chmod): Require 'mode' argument (diff)
downloadguile-ssh-b08b221ad8d8786ad2203602bcf194ec70447b66.tar.gz
modules/ssh/sftp.scm (sftp-mkdir): Update the docstring
Diffstat (limited to 'modules/ssh')
-rw-r--r--modules/ssh/sftp.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/ssh/sftp.scm b/modules/ssh/sftp.scm
index 1ca0a1b..e5e812b 100644
--- a/modules/ssh/sftp.scm
+++ b/modules/ssh/sftp.scm
@@ -84,8 +84,9 @@ or throw 'guile-ssh-error' on if an error occured in the procedure itself."
(define* (sftp-mkdir sftp-session dirname #:optional (mode #o777))
- "Create a directory DIRNAME using a SFTP-SESSION with a MODE. If the MODE
-is omitted, the current umask value is used."
+ "Create a directory DIRNAME using a SFTP-SESSION with permissions specified
+by a MODE. The permissions of the created file are (MODE & ~umask). If the
+MODE is omitted, #o777 is used."
(%gssh-sftp-mkdir sftp-session dirname mode))
(define (sftp-rmdir sftp-session dirname)