Skip to content

Commit

Permalink
Added docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
johnyrahul committed Jul 12, 2024
1 parent 190ec7c commit df9c6bb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions backend/workflow_manager/endpoint/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,17 @@ def handle_final_result(
results.append({"file": file_name, "result": result})

def load_file(self, input_file_path: str) -> tuple[str, BytesIO]:
"""Load file contnt and file name based on the file path.
Args:
input_file_path (str): source file
Raises:
InvalidSource: _description_
Returns:
tuple[str, BytesIO]: file_name , file content
"""
connector: ConnectorInstance = self.endpoint.connector_instance
connector_settings: dict[str, Any] = connector.connector_metadata
source_fs: fsspec.AbstractFileSystem = self.get_fsspec(
Expand Down

0 comments on commit df9c6bb

Please sign in to comment.