From 735fab7640751e00a45695e47f990a2a020e35ea Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Mon, 4 Aug 2025 16:36:38 +0530 Subject: [PATCH] (feat:storage) sync base --- application/storage/base.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/application/storage/base.py b/application/storage/base.py index 50eaac7e..79bd7348 100644 --- a/application/storage/base.py +++ b/application/storage/base.py @@ -106,3 +106,19 @@ class BaseStorage(ABC): bool: True if the path is a directory """ 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