Skip to content

Repository files navigation

TagBites.IO.WinDrive

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.

Install

dotnet add package TagBites.IO.WinDrive

Usage

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.

License

See https://www.tagbites.com/io for licensing terms.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages