fsspec: use rm_file() (#6358)

This commit is contained in:
Batuhan Taskaya
2021-07-23 14:10:16 +03:00
committed by GitHub
parent 67b42ebe4f
commit d5722e3edf
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -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()
-3
View File
@@ -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))