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

fsspec: use rm_file() #6358

Merged
merged 1 commit into from
Jul 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion dvc/fs/fsspec_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def walk_files(self, path_info, **kwargs):
yield path_info.replace(path=file)

def remove(self, path_info):
self.fs.rm(self._with_bucket(path_info))
self.fs.rm_file(self._with_bucket(path_info))

def info(self, path_info):
info = self.fs.info(self._with_bucket(path_info)).copy()
Expand Down
3 changes: 0 additions & 3 deletions dvc/fs/oss.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,3 @@ def fs(self):
from ossfs import OSSFileSystem as _OSSFileSystem

return _OSSFileSystem(**self.fs_args)

def remove(self, path_info):
self.fs.rm_file(self._with_bucket(path_info))