Accept mode as argument in `mkdir' action
This commit is contained in:
@@ -20,8 +20,9 @@ module Producer
|
||||
false
|
||||
end
|
||||
|
||||
def mkdir(path)
|
||||
sftp.mkdir! path
|
||||
def mkdir(path, mode = nil)
|
||||
options = mode ? { permissions: mode } : {}
|
||||
sftp.mkdir! path, options
|
||||
end
|
||||
|
||||
def file_read(path)
|
||||
|
Reference in New Issue
Block a user