-
Notifications
You must be signed in to change notification settings - Fork 408
Open
Description
Hi,
I noticed that AbstractFileSystem.rm()
docs is a little bit imprecise here:
The main description indicates that the method is meant to use files, but presence and description of recurse
and maxdepth
imply that it should also work for directories.
If it should works for both directories and files, this should reflect in the main description as well as description of path
parameter.
filesystem_spec/fsspec/spec.py
Lines 1232 to 1246 in f84b99f
def rm(self, path, recursive=False, maxdepth=None): | |
"""Delete files. | |
Parameters | |
---------- | |
path: str or list of str | |
File(s) to delete. | |
recursive: bool | |
If file(s) are directories, recursively delete contents and then | |
also remove the directory | |
maxdepth: int or None | |
Depth to pass to walk for finding files to delete, if recursive. | |
If None, there will be no limit and infinite recursion may be | |
possible. | |
""" |
Metadata
Metadata
Assignees
Labels
No labels