Mount any TagBites.IO file system - local disk, FTP, ZIP, Dropbox, S3, a virtual composed tree, etc. - as a real Windows drive letter, using Dokan.
Requires the Dokan driver to be installed on the machine, and targets net8.0-windows.
dotnet add package TagBites.IO.WinDrive
Targets net8.0-windows. Depends on DokanNet and the Dokan driver.
using TagBites.IO;
var directory = FileSystem.Local.GetDirectory("/some/folder");
using var drive = new WinDrive(directory)
{
MountPoint = "V:\\", // or a folder path on an NTFS partition
IsReadOnly = false
};
drive.Mount();
// ... drive is now browsable as V:\ ...
drive.Dismount();Because it wraps a regular FileSystem, any TagBites.IO-backed storage can be mounted the same way - swap FileSystem.Local for an FTP, S3 or ZIP file system to expose that storage as a Windows drive instead.
AccessDenyFiles / AccessDenyProcesses let you block specific file names or processes (e.g. antivirus scanners, thumbnail generators) from touching the mounted drive.
- Mounts any
TagBites.IOfile system as a Windows drive letter, so its capabilities are whatever the mounted file system reports. - Requires the Dokan driver installed on the machine.
- The mount is visible to every process in the Windows session - see SECURITY.md.