hack-pad / hackpadfs

An extensible file system abstraction for Go. File systems, composable interfaces, and test suites.
Apache License 2.0
251 stars 11 forks source link

Implement MountFS on `Sub()` fallback to support non-read operations #28

Closed JohnStarich closed 1 year ago

JohnStarich commented 1 year ago

Implements MountFS on Sub() fallback to support non-read operations.

Caveat: The PathErrors returned from File operations use their original Path values.

This is a limitation of the current MountFS design, where the returned File from Open(), OpenFile(), and Create() are returned as-is to support direct interface checks in client code.

Wrappers would break this behavior and therefore were avoided.

Part of #21