Skip to content

Commit 31a7b85

Browse files
ds-filipknefelFilip Knefel
andauthored
fix: Invalid replace() call (#90)
* fix: replace() on Path instead of str * Version bump + changelog --------- Co-authored-by: Filip Knefel <[email protected]>
1 parent 0090c4e commit 31a7b85

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.0.12
2+
3+
### Enhancements
4+
5+
### Fixes
6+
7+
* **Fix invalid `replace()` calls in uncompress** - `replace()` calls meant to be on `str` versions of the path were instead called on `Path` causing errors with parameters.
8+
19
## 0.0.11
210

311
### Enhancements

unstructured_ingest/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.11" # pragma: no cover
1+
__version__ = "0.0.12" # pragma: no cover

unstructured_ingest/v2/processes/uncompress.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ def run(self, file_data: FileData, **kwargs: Any) -> list[FileData]:
4343
new_rel_download_path = str(f).replace(str(Path(local_filepath.parent)), "")[1:]
4444
new_file_data.source_identifiers = SourceIdentifiers(
4545
filename=f.name,
46-
fullpath=file_data.source_identifiers.fullpath.replace(
46+
fullpath=str(file_data.source_identifiers.fullpath).replace(
4747
file_data.source_identifiers.filename, new_rel_download_path
4848
),
4949
rel_path=(
50-
file_data.source_identifiers.rel_path.replace(
50+
str(file_data.source_identifiers.rel_path).replace(
5151
file_data.source_identifiers.filename, new_rel_download_path
5252
)
5353
if file_data.source_identifiers.rel_path

0 commit comments

Comments
 (0)