Skip to content

Commit

Permalink
localfs: fix support for pathlib/os.PathLike objects in rm
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Oct 3, 2022
1 parent 3163a23 commit 6625a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsspec/implementations/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def rm_file(self, path):
os.remove(path)

def rm(self, path, recursive=False, maxdepth=None):
if isinstance(path, str):
if not isinstance(path, list):
path = [path]

for p in path:
Expand Down

0 comments on commit 6625a42

Please sign in to comment.