An NFS client for .NET, in pure managed code
Connect to a NAS, a Linux server or a storage appliance over NFS version 3, 4.0 or 4.1, then list, read and write files with ordinary paths. No operating system NFS client, no administrator rights, no native code.
dotnet add package Fungusware.NfsWhy Fungusware.Nfs
Runs everywhere
netstandard2.0 and 2.1: Windows, Linux and macOS, on .NET Framework 4.6.1+, .NET Core and .NET 5 and later.
Fast on slow links
Several requests in flight at once keep transfers moving over VPN, Wi-Fi and WAN connections.
Async all the way
Streams with read-ahead, whole-file helpers, directories, rename, permissions and timestamps.
Familiar errors
FileNotFoundException, DirectoryNotFoundException and UnauthorizedAccessException, not raw protocol codes.
Offline licensing
A signed key is checked on the machine. No activation server, no internet access needed.
Tested
More than 400 tests run on both .NET 8 and .NET Framework 4.8, and the library is verified against real NAS hardware.
A taste
await using var nfs = await NfsClient.ConnectAsync(new NfsClientOptions
{
Host = "192.168.1.20",
ExportPath = "/volume1/shared",
});
foreach (var entry in await nfs.ListAsync("/photos"))
Console.WriteLine(entry.Name);
byte[] data = await nfs.ReadAllBytesAsync("/photos/cat.jpg");
await nfs.WriteAllBytesAsync("/backup/cat.jpg", data);