mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-14 18:18:08 +00:00
(feat:storage) sync base
This commit is contained in:
1 parent
45745c2a47
commit
735fab7640
1 file changed
+16
@@ -106,3 +106,19 @@ class BaseStorage(ABC):
|
|||||||
bool: True if the path is a directory
|
bool: True if the path is a directory
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def remove_directory(self, directory: str) -> bool:
|
||||||
|
"""
|
||||||
|
Remove a directory and all its contents.
|
||||||
|
|
||||||
|
For local storage, this removes the directory and all files/subdirectories within it.
|
||||||
|
For S3 storage, this removes all objects with the directory path as a prefix.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
directory: Directory path to remove
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
bool: True if removal was successful, False otherwise
|
||||||
|
"""
|
||||||
|
pass
|
||||||
Reference in new issue
Block a user