Skip to content

Document backend-specific compression handling in get_file - #2523

Open
Daniel-Kim-Grata wants to merge 1 commit into
fsspec:masterfrom
Daniel-Kim-Grata:docs/get-file-compression
Open

Daniel-Kim-Grata wants to merge 1 commit into
fsspec:masterfrom
Daniel-Kim-Grata:docs/get-file-compression

Conversation

@Daniel-Kim-Grata

Copy link
Copy Markdown

The default get_file passes extra options through to open, but optimized backend transfers may copy the source bytes directly. For example, the local backend copies the original gzip bytes even with compression="infer". The usage guide now shows how to open the source explicitly and stream the decoded bytes into a local file. The base API docstring also notes the distinction.

Refs #1758. No behavior change.

Verified the exact example with a temporary gzip file and confirmed the local get_file behavior. The focused suite passed (90 tests). Sphinx rendered both links; warnings-as-errors reported the same pre-existing changelog warning on the base and this branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant