fix: remove abstractmethod from scan method in BaseStorage

pull/18835/head
kurokobo 1 year ago
parent 5255bb5e88
commit f33f7e7181

@ -31,6 +31,10 @@ class BaseStorage(ABC):
def delete(self, filename): def delete(self, filename):
raise NotImplementedError raise NotImplementedError
@abstractmethod def scan(self, path, files=True, directories=False) -> list[str]:
def scan(self, path, files, directories) -> list[str]: """
raise NotImplementedError Scan files and directories in the given path.
This method is implemented only in some storage backends.
If a storage backend doesn't support scanning, it will raise NotImplementedError.
"""
raise NotImplementedError("This storage backend doesn't support scanning")

Loading…
Cancel
Save