diff --git a/fsspec/implementations/local.py b/fsspec/implementations/local.py index 619ea1d00..ee2995d63 100644 --- a/fsspec/implementations/local.py +++ b/fsspec/implementations/local.py @@ -154,7 +154,11 @@ def get_file(self, path1, path2, callback=None, **kwargs): def put_file(self, path1, path2, callback=None, **kwargs): return self.cp_file(path1, path2, **kwargs) - def mv(self, path1, path2, **kwargs): + def mv(self, path1, path2, recursive: bool = True, **kwargs): + """Move files/directories + For the specific case of local, all ops on directories are recursive and + the recursive= kwarg is ignored. + """ path1 = self._strip_protocol(path1) path2 = self._strip_protocol(path2) shutil.move(path1, path2)