Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.0

* **Allow skipping .json extension for fsspec uploads**

## 1.0.48

* **Improve Jira attachment path results**
Expand Down
2 changes: 1 addition & 1 deletion unstructured_ingest/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.48" # pragma: no cover
__version__ = "1.1.0" # pragma: no cover
3 changes: 2 additions & 1 deletion unstructured_ingest/processes/connectors/fsspec/fsspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ def get_upload_path(self, file_data: FileData) -> Path:
upload_path = Path(
self.upload_config.path_without_protocol
) / file_data.source_identifiers.relative_path.lstrip("/")
updated_upload_path = upload_path.parent / f"{upload_path.name}.json"
suffix = os.environ.get("UNSTRUCTURED_INGEST_UPLOAD_APPEND_SUFFIX", ".json")
updated_upload_path = upload_path.parent / f"{upload_path.name}{suffix}"
return updated_upload_path

def run(self, path: Path, file_data: FileData, **kwargs: Any) -> None:
Expand Down
Loading