Virtfs Virtfs provides primitives for describing paths in a file system in an abstract (platform-independent) and relatively portable manner, while allowing virtual file systems to be easily mounted to facilitate the writing of unit tests in programmes that abstract effects and rely on the file system.