Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocalFileSystem.rm support for a sequence of string arguments #678

Merged
merged 1 commit into from
Jun 19, 2021

Conversation

d-v-b
Copy link
Contributor

@d-v-b d-v-b commented Jun 18, 2021

LocalFileSystem.rm(path) now works if path is a sequence of strings. Resolves #677 but not the deeper issue -- the tests in test_mapping are not parametrized over different filesystems, and so there is no general mechanism way to catch this kind of API mismatch.

@@ -122,14 +122,18 @@ def mv_file(self, path1, path2, **kwargs):
shutil.move(path1, path2)

def rm(self, path, recursive=False, maxdepth=None):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maxdepth is not used in this function...

@d-v-b d-v-b changed the title LocalFileSystem support for a sequence of string arguments LocalFileSystem.rm support for a sequence of string arguments Jun 18, 2021
@martindurant
Copy link
Member

Ref: #651 about parameterised testing of many/all filesystems

@martindurant martindurant merged commit 0c469bf into fsspec:master Jun 19, 2021
@martindurant
Copy link
Member

Thanks for turning this around quickly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API mismatch between mapping and implementations
2 participants