Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion fsspec/implementations/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,12 @@ 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)
Expand Down
Loading