Ramstack.FileSystem.Prefixed 1.1.1

dotnet add package Ramstack.FileSystem.Prefixed --version 1.1.1                
NuGet\Install-Package Ramstack.FileSystem.Prefixed -Version 1.1.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ramstack.FileSystem.Prefixed" Version="1.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ramstack.FileSystem.Prefixed --version 1.1.1                
#r "nuget: Ramstack.FileSystem.Prefixed, 1.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Ramstack.FileSystem.Prefixed as a Cake Addin
#addin nuget:?package=Ramstack.FileSystem.Prefixed&version=1.1.1

// Install Ramstack.FileSystem.Prefixed as a Cake Tool
#tool nuget:?package=Ramstack.FileSystem.Prefixed&version=1.1.1                

Ramstack.FileSystem.Prefixed

Provides an implementation of Ramstack.FileSystem that adds a specified prefix to the file paths within the underlying file system.

Getting Started

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

dotnet add package Ramstack.FileSystem.Prefixed

Usage

using Ramstack.FileSystem.Prefixed;

IVirtualFileSystem fileSystem = new PhysicalFileSystem(@"C:\path");

// Make all original files and directories accessible with the "/public/assets" prefix,
// as if they were originally located at that path.
//
// As an example, a file originally at "/hello.txt" will be accessed as "/public/assets/hello.txt".

PrefixedFileSystem fs = new PrefixedFileSystem(prefix: "/public/assets", fileSystem);

await foreach (VirtualFile file in fs.GetFilesAsync("/public/assets"))
{
    Console.WriteLine(file.FullName);
}

Supported versions

Version
.NET 6, 7, 8

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.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.1 120 9/14/2024
1.1.0 99 9/14/2024
1.0.1 109 9/13/2024
1.0.0 97 9/13/2024
1.0.0-preview.9 52 9/10/2024
1.0.0-preview.8 54 9/5/2024
1.0.0-preview.7 49 9/4/2024
1.0.0-preview.6 53 9/3/2024
1.0.0-preview.5 50 8/30/2024
1.0.0-preview.4 70 8/24/2024
1.0.0-preview.3 75 8/22/2024
1.0.0-preview.2 71 8/21/2024
1.0.0-preview.1 57 8/20/2024