Skip to content

Commit

Permalink
Add file id
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiseck3 committed Oct 2, 2024
1 parent 135edf5 commit 2d56f42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions unstructured_ingest/v2/processes/connectors/fsspec/box.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def get_metadata(self, file_data: dict) -> FileDataSourceMetadata:
record_locator = {
"protocol": self.index_config.protocol,
"remote_file_path": self.index_config.remote_url,
"file_id": file_data.get("id"),
}
return FileDataSourceMetadata(
date_created=date_created,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def get_metadata(self, file_data: dict) -> FileDataSourceMetadata:
record_locator = {
"protocol": self.index_config.protocol,
"remote_file_path": self.index_config.remote_url,
"file_id": file_data.get("id"),
}
return FileDataSourceMetadata(
date_created=date_created,
Expand Down
1 change: 1 addition & 0 deletions unstructured_ingest/v2/processes/connectors/fsspec/gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def get_metadata(self, file_data: dict) -> FileDataSourceMetadata:
record_locator = {
"protocol": self.index_config.protocol,
"remote_file_path": self.index_config.remote_url,
"file_id": file_data.get("id"),
}
return FileDataSourceMetadata(
date_created=date_created,
Expand Down

0 comments on commit 2d56f42

Please sign in to comment.