While looking at #94, I saw a possible issue with MountFileSystem. It's possible for the MountFileSystem to not have a fallback filesystem, causing ResolvePath to throw an InvalidOperationException. The change in ComposeFileSystem fixes this problem.
While looking at #94, I saw a possible issue with MountFileSystem. It's possible for the MountFileSystem to not have a fallback filesystem, causing
ResolvePath
to throw an InvalidOperationException. The change in ComposeFileSystem fixes this problem.After that I've implemented
ResolvePathImpl
in MountFileSystem, so it'll also use the move when theMountFileSystem
isn't used directly, e.g.: https://github.com/xoofx/zio/blob/574a76d5e58434db98d7743f05fb9149e5a68f27/src/Zio.Tests/FileSystems/TestMemoryFileSystem.cs#L107