Mab.PipelineFramework.FileStorage.Abstractions 1.0.2

dotnet add package Mab.PipelineFramework.FileStorage.Abstractions --version 1.0.2
                    
NuGet\Install-Package Mab.PipelineFramework.FileStorage.Abstractions -Version 1.0.2
                    
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="Mab.PipelineFramework.FileStorage.Abstractions" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mab.PipelineFramework.FileStorage.Abstractions" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Mab.PipelineFramework.FileStorage.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Mab.PipelineFramework.FileStorage.Abstractions --version 1.0.2
                    
#r "nuget: Mab.PipelineFramework.FileStorage.Abstractions, 1.0.2"
                    
#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.
#:package Mab.PipelineFramework.FileStorage.Abstractions@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Mab.PipelineFramework.FileStorage.Abstractions&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Mab.PipelineFramework.FileStorage.Abstractions&version=1.0.2
                    
Install as a Cake Tool

Mab.PipelineFramework.FileStorage.Abstractions

Abstractions for virtual file storage operations. Provides a unified IFileStore interface for file operations across different storage backends.

Installation

dotnet add package Mab.PipelineFramework.FileStorage.Abstractions

Key Interfaces

IFileStore

The main interface for file storage operations:

public interface IFileStore
{
    Task<IFileStoreEntry?> GetFileInfoAsync(string path);
    Task<IFileStoreEntry?> GetDirectoryInfoAsync(string path);
    IAsyncEnumerable<IFileStoreEntry> GetDirectoryContentAsync(string? path = null, bool includeSubDirectories = false);
    Task<bool> TryCreateDirectoryAsync(string path);
    Task<bool> TryDeleteFileAsync(string path);
    Task<bool> TryDeleteDirectoryAsync(string path);
    Task MoveFileAsync(string oldPath, string newPath);
    Task CopyFileAsync(string srcPath, string dstPath);
    Task<Stream> GetFileStreamAsync(string path);
    Task<string> CreateFileFromStreamAsync(string path, Stream inputStream, bool overwrite = false);
}

IFileStoreEntry

Represents a file or directory entry:

public interface IFileStoreEntry
{
    string Path { get; }
    string Name { get; }
    string DirectoryPath { get; }
    long Length { get; }
    DateTime LastModifiedUtc { get; }
    bool IsDirectory { get; }
}

IClock

Testable time abstraction:

public interface IClock
{
    DateTime UtcNow { get; }
}

// Default implementation
public class SystemClock : IClock
{
    public static readonly IClock Instance = new SystemClock();
    public DateTime UtcNow => DateTime.UtcNow;
}

Available Implementations

License

MIT

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Mab.PipelineFramework.FileStorage.Abstractions:

Package Downloads
Mab.PipelineFramework.FileStorage.S3

S3-compatible storage implementation for PipelineFramework.FileStorage. Supports AWS S3, Cloudflare R2, MinIO, and other S3-compatible services using the MinIO .NET SDK.

Mab.PipelineFramework.FileStorage.FileSystem

Local file system implementation for PipelineFramework.FileStorage. Provides IFileStore implementation for physical file system operations.

Mab.PipelineFramework.FileStorage.AmazonS3

Amazon S3 implementation for PipelineFramework.FileStorage. Provides IFileStore implementation for AWS S3 bucket operations.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 609 12/8/2025
1.0.0 186 11/28/2025