Creates a new directory *path* on the *service_name*. :param string/unicode service_name: Contains the name of the shared folder. :param string/unicode path: The path of the new folder (relative to) the shared folder. If the path contains
(self, service_name, path)
| 324 | return d |
| 325 | |
| 326 | def createDirectory(self, service_name, path): |
| 327 | """ |
| 328 | Creates a new directory *path* on the *service_name*. |
| 329 | |
| 330 | :param string/unicode service_name: Contains the name of the shared folder. |
| 331 | :param string/unicode path: The path of the new folder (relative to) the shared folder. |
| 332 | If the path contains non-English characters, an unicode string must be used to pass in the path. |
| 333 | :param integer/float timeout: Number of seconds that pysmb will wait before raising *SMBTimeout* via the returned *Deferred* instance's *errback* method. |
| 334 | :return: A *twisted.internet.defer.Deferred* instance. The callback function will be called with the *path* parameter. |
| 335 | """ |
| 336 | if not self.instance: |
| 337 | raise NotConnectedError('Not connected to server') |
| 338 | |
| 339 | d = defer.Deferred() |
| 340 | self.instance._createDirectory(service_name, path, d.callback, d.errback) |
| 341 | return d |
| 342 | |
| 343 | def deleteDirectory(self, service_name, path): |
| 344 | """ |
nothing calls this directly
no test coverage detected