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)
| 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 | """ |