Kiyote.Files
0.4.3
dotnet add package Kiyote.Files --version 0.4.3
NuGet\Install-Package Kiyote.Files -Version 0.4.3
<PackageReference Include="Kiyote.Files" Version="0.4.3" />
<PackageVersion Include="Kiyote.Files" Version="0.4.3" />
<PackageReference Include="Kiyote.Files" />
paket add Kiyote.Files --version 0.4.3
#r "nuget: Kiyote.Files, 0.4.3"
#:package Kiyote.Files@0.4.3
#addin nuget:?package=Kiyote.Files&version=0.4.3
#tool nuget:?package=Kiyote.Files&version=0.4.3
Kiyote.Files
Provides a file system abstraction layer for various back-ends. These file systems can either be Read/Write or Read-Only. The method by which the files are placed, retrieved or enumerated is abstracted from the consumer to ensure a broader compatibility between backends.
Getting Started
Each registered file system must have its own distinct identifier. This allows implementations to correctly store and retrieve from the appropriate location invisibly to the user. They are just aware there is an opaque IFileSystemIdentifier for their file.
Create a file system identifier for your repository:
public abstract class FS {
public sealed class Test : IFileSystemIdentifier {
public const string TestFileSystemId = "Test";
FileSystemId IFileSystemIdentifier.FileSystemId => TestFileSystemId;
}
}
Register the file system:
services.AddReadWriteDisk<FS.Test>( @"c:\temp" );
Inject the file system in to a class to consume it:
public sealed class Foo( IFileSystem<FS.Temp> tempFileSystem ) {
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Kiyote.Files:
| Package | Downloads |
|---|---|
|
Kiyote.Files.Disk
Package Description |
|
|
Kiyote.Files.Resource
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.