diff --git a/fsspec/implementations/smb.py b/fsspec/implementations/smb.py index e60724e23..e8989b0af 100644 --- a/fsspec/implementations/smb.py +++ b/fsspec/implementations/smb.py @@ -248,11 +248,9 @@ def _rm(self, path): else: smbclient.remove(wpath, port=self._port) - def mv(self, path1, path2, **kwargs): + def mv(self, path1, path2, recursive=None, maxdepth=None, **kwargs): wpath1 = _as_unc_path(self.host, path1) wpath2 = _as_unc_path(self.host, path2) - kwargs.pop("recursive", None) - kwargs.pop("maxdepth", None) smbclient.rename(wpath1, wpath2, port=self._port, **kwargs)