Skip to content
Auto
Products

SMB file system

This file system provides an implementation for the file system based on an SMB/CIFS network share, using the SMBLibrary client library. It reaches a Windows share or a Samba server without mapping a drive letter.

var address = "smb://server/share";
var username = "user";
var password = "password";
using var fileSystem = TagBites.IO.Smb.SmbFileSystem.Create(address, username, password, domain: "WORKGROUP");
// ... using like standard file system

domain can be left empty for a local, non-domain account. For full control over the connection, pass a SmbConnectionConfig instead.

  • Synchronous operations. Asynchronous calls run on top of them.
  • Metadata: hidden, read-only and last write time.

Full implementation on github: TagBites.IO.Smb.