Skip to content

Commit

Permalink
localfs: fix support for pathlib/os.PathLike objects in rm (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Oct 3, 2022
1 parent 3163a23 commit 07303ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsspec/implementations/local.py
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 07303ea

Please sign in to comment.