(feat:storage) is dir fnc

This commit is contained in:
ManishMadan2882
2025-07-15 15:34:16 +05:30
parent 5b07c5f2e8
commit 1d9af05e9e
3 changed files with 51 additions and 0 deletions

View File

@@ -101,3 +101,16 @@ class LocalStorage(BaseStorage):
raise FileNotFoundError(f"File not found: {full_path}")
return processor_func(local_path=full_path, **kwargs)
def is_directory(self, path: str) -> bool:
"""
Check if a path is a directory in local storage.
Args:
path: Path to check
Returns:
bool: True if the path is a directory, False otherwise
"""
full_path = self._get_full_path(path)
return os.path.isdir(full_path)