-
Notifications
You must be signed in to change notification settings - Fork 266
Description
Is your feature request related to a problem? Please describe.
In my project, there's a few places where I need to temporarily store a directory's worth of data as files, but this is rather cumbersome. Reading/writing to the filesystem is painfully slow, this is easily the slowest part of these paths.
I investigated using MockFileSystem for this, but it appears that MockFileSystem mocks out everything. So there's no way to have some of the filesystem be mocked and some not be mocked.
Describe the solution you'd like
I'd like the ability to mock out a portion of the filesystem via System.IO.Abstractions, maybe via a virtual drive? This would let me use the exact same logic I already have for handling filesystems, except against a virtualized filesystem that would be vastly more performant.
Describe alternatives you've considered
I'm able to write these classes myself and plan to do so, but ideally this feature would be provided within System.IO.Abstractions. My proposed name is "ComplexFileSystem", since it has "real" and "imaginary" components 😊.