Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 3.03 KB

File metadata and controls

62 lines (47 loc) · 3.03 KB

Ramstack.FileSystem.Physical

NuGet MIT

Provides an implementation of Ramstack.FileSystem based on local file system.

Getting Started

To install the Ramstack.FileSystem.Physical NuGet package in your project, run the following command:

dotnet add package Ramstack.FileSystem.Physical

Usage

using Ramstack.FileSystem.Physical;

PhysicalFileSystem fs = new PhysicalFileSystem(@"C:\path\to\directory");

await foreach (VirtualFile file in fs.GetFilesAsync("/"))
{
    Console.WriteLine(node.Name);
}

You can also configure the file system to be read-only:

using Ramstack.FileSystem.Physical;

PhysicalFileSystem fs = new PhysicalFileSystem(@"C:\path\to\directory")
{
    IsReadOnly = true
};

Related Projects

Supported versions

Version
.NET 6, 7, 8, 9, 10

Contributions

Bug reports and contributions are welcome.

License

This package is released as open source under the MIT License. See the LICENSE file for more details.