This package provides a transactional view of a file system and an in-memory simulator for that view. This makes it easy to test code that interacts with the file system.
This is not your typical files and directories API. There is a single instance that represents the entire file system. File and directory objects are bound to a file system instance and all the instances related to a single file system share consistent state.
Whole-system savepoints are built in and you can revert to the last savepoint at any time.
Install-Package Simulated.FileSystem -Version 0.5.1
dotnet add package Simulated.FileSystem --version 0.5.1
<PackageReference Include="Simulated.FileSystem" Version="0.5.1" />
paket add Simulated.FileSystem --version 0.5.1
Everything is performed async, with Tasks exposed to the user. Make sure you await operations.
This release also adds the ability to delete files and directories, still with full transactional gurantees.
API is not yet locked but will be soon. At tht point, I will maintain backwards compatibility from there on. Future experimentation will happen in the Simulated.Experimental namespace. Everything outside of that namespace will be compatible.
This package has no dependencies.
This package is not used by any popular GitHub repositories.