MCPcopy Create free account
hub / github.com/StackStorm/st2 / mkdir

Method mkdir

st2common/st2common/runners/paramiko_ssh.py:314–329  ·  view source on GitHub ↗

Create a directory on remote box. :param dir_path: Path to remote directory to be created. :type dir_path: ``str`` :return: Returns nothing if successful else raises IOError exception. :rtype: ``None``

(self, dir_path)

Source from the content-addressed store, hash-verified

312 return True
313
314 def mkdir(self, dir_path):
315 """
316 Create a directory on remote box.
317
318 :param dir_path: Path to remote directory to be created.
319 :type dir_path: ``str``
320
321 :return: Returns nothing if successful else raises IOError exception.
322
323 :rtype: ``None``
324 """
325
326 dir_path = quote_unix(dir_path)
327 extra = {"_dir_path": dir_path}
328 self.logger.debug("mkdir", extra=extra)
329 return self.sftp.mkdir(dir_path)
330
331 def delete_file(self, path):
332 """

Callers 8

_copy_artifactsMethod · 0.45
setUpClassMethod · 0.45
tearDownClassMethod · 0.45
put_dirMethod · 0.45
clone_action_filesFunction · 0.45
temp_backup_action_filesFunction · 0.45

Calls 1

quote_unixFunction · 0.90