tractordev / toolkit-go

MIT License
5 stars 3 forks source link

Mountable Filesystem #1

Closed Parzival-3141 closed 11 months ago

Parzival-3141 commented 11 months ago

This PR implements MountableFS, which allows the user to mount filesystems as directories. MountableFS implements the MutableFS interface and includes Mount/Unmount operations. Tests are included as well, alongside some small bug fixes.

I also encountered some issues with the MemFS implementation. Namely that functions will attempt to create parent directories whenever possible, even though it's against the spec (e.g. Mkdir). I can open a follow up issue to address this.