Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

fix: Issue for gdrive with listing files (#624)

Chandrasekharan M021d0cbf2a32
diff --git a/backend/workflow_manager/endpoint/source.py b/backend/workflow_manager/endpoint/source.py
index c71a3c26b..3f06752ed 100644
--- a/backend/workflow_manager/endpoint/source.py
+++ b/backend/workflow_manager/endpoint/source.py
@@ -170,6 +170,9 @@ class SourceConnector(BaseConnector):
for input_directory in folders_to_process:
# TODO: Move to connector class for better error handling
try:
+ input_directory = source_fs.get_connector_root_dir(
+ input_dir=input_directory, root_path=root_dir_path
+ )
is_directory = source_fs_fsspec.isdir(input_directory)
except Exception as e:
raise InvalidInputDirectory(