Virtual File System for .NET (C#) Apache Commons VFS port.


NI.Vfs is based on Apache Commons VFS (C# port of V1) and adopted for .NET environment. Part of NIC.NET open-source library.

features

  • Abstract filesystem API for accessing files by application logic
  • Mature object model for representing filesystem domain (folders tree and file operations)
  • Implementations: local filesystem, memory filesystem
  • Free and open source (LGPL)

links

how to use

  1. Install NI.Vfs nuget package
  2. using NI.Vfs;
    ...
    IFileSystem localFs = new LocalFileSystem("c:\\temp");
    var txtFile = localFs.ResolveFile("test1.txt");
    txtFile.CreateFile();