def makedirs(self, path, exist_ok=False): if _share_has_path(path): wpath = _as_unc_path(self.host, path) smbclient.makedirs(wpath, exist_ok=exist_ok)
def makedirs(self, path, exist_ok=False): return smbclient.makedirs(self._join_path(path), exist_ok=exist_ok, **self._conn_kwargs)
def mkdir(self, path, create_parents=True, **kwargs): wpath = _as_unc_path(self.host, path) if create_parents: smbclient.makedirs(wpath, exist_ok=False, **kwargs) else: smbclient.mkdir(wpath, **kwargs)