Skip to content

Expose Reader as an io/fs filesystem - #46

Merged
andrew merged 1 commit into
mainfrom
add-reader-fs
Sep 22, 2026
Merged

andrew merged 1 commit into
mainfrom
add-reader-fs

Conversation

@andrew

@andrew andrew commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Add NewFS(reader) so archive contents can be walked with fs.WalkDir, read with fs.ReadFile, and passed to APIs accepting fs.FS without extracting to disk. The adapter also implements fs.ReadDirFS and fs.StatFS, indexes metadata once, and reads file contents through the underlying reader.

Supply implicit directories and sorted listings, preserve entry metadata, and return standard filesystem errors for invalid or missing paths. Special entries can be listed but cannot be opened. The caller retains ownership of the reader.

Fixes #45

@andrew
andrew merged commit 5367708 into main Sep 22, 2026
5 checks passed
@andrew
andrew deleted the add-reader-fs branch September 22, 2026 07:21
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.

Expose Reader as an io/fs.FS

1 participant