Ramstack.FileSystem.Sub
1.0.0-preview.5
This is a prerelease version of Ramstack.FileSystem.Sub.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Ramstack.FileSystem.Sub --version 1.0.0-preview.5
NuGet\Install-Package Ramstack.FileSystem.Sub -Version 1.0.0-preview.5
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.Sub" Version="1.0.0-preview.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ramstack.FileSystem.Sub --version 1.0.0-preview.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Ramstack.FileSystem.Sub, 1.0.0-preview.5"
#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.Sub as a Cake Addin #addin nuget:?package=Ramstack.FileSystem.Sub&version=1.0.0-preview.5&prerelease // Install Ramstack.FileSystem.Sub as a Cake Tool #tool nuget:?package=Ramstack.FileSystem.Sub&version=1.0.0-preview.5&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Ramstack.FileSystem.Sub
Provides an implementation of Ramstack.FileSystem
that wraps an underlying file system for managing files under a specific subpath.
Getting Started
To install the Ramstack.FileSystem.Sub
NuGet package
in your project, run the following command:
dotnet add package Ramstack.FileSystem.Sub
Usage
using Ramstack.FileSystem.Sub;
IVirtualFileSystem fileSystem = new PhysicalFileSystem(@"C:\project");
// Restrict the file system to only the contents within the "/app/assets" directory
// of the parent file system. Files and directories above the specified path will be inaccessible.
SubFileSystem fs = new SubFileSystem(path: "/app/assets", fileSystem);
await foreach (VirtualFile file in fs.GetFilesAsync("/"))
{
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 | Versions 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.
-
net6.0
- Ramstack.FileSystem.Abstractions (>= 1.0.0-preview.5)
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 | 123 | 9/14/2024 |
1.1.0 | 97 | 9/14/2024 |
1.0.1 | 100 | 9/13/2024 |
1.0.0 | 109 | 9/13/2024 |
1.0.0-preview.9 | 53 | 9/10/2024 |
1.0.0-preview.8 | 53 | 9/5/2024 |
1.0.0-preview.7 | 47 | 9/4/2024 |
1.0.0-preview.6 | 60 | 9/3/2024 |
1.0.0-preview.5 | 52 | 8/30/2024 |
1.0.0-preview.4 | 73 | 8/24/2024 |
1.0.0-preview.3 | 71 | 8/22/2024 |
1.0.0-preview.2 | 71 | 8/21/2024 |
1.0.0-preview.1 | 58 | 8/20/2024 |