From d5722e3edf55c50462fc32eb90a2036f570da4ae Mon Sep 17 00:00:00 2001 From: Batuhan Taskaya Date: Fri, 23 Jul 2021 14:10:16 +0300 Subject: [PATCH] fsspec: use rm_file() (#6358) --- dvc/fs/fsspec_wrapper.py | 2 +- dvc/fs/oss.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/dvc/fs/fsspec_wrapper.py b/dvc/fs/fsspec_wrapper.py index daaf3a031..74021714a 100644 --- a/dvc/fs/fsspec_wrapper.py +++ b/dvc/fs/fsspec_wrapper.py @@ -102,7 +102,7 @@ class FSSpecWrapper(BaseFileSystem): 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() diff --git a/dvc/fs/oss.py b/dvc/fs/oss.py index 423607a85..6ed2f3f2f 100644 --- a/dvc/fs/oss.py +++ b/dvc/fs/oss.py @@ -39,6 +39,3 @@ class OSSFileSystem(CallbackMixin, ObjectFSWrapper): 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))