mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
fsspec: use rm_file() (#6358)
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user