DropBear.Codex.Files 2024.4.40

There is a newer version of this package available.
See the version list below for details.
dotnet add package DropBear.Codex.Files --version 2024.4.40                
NuGet\Install-Package DropBear.Codex.Files -Version 2024.4.40                
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="DropBear.Codex.Files" Version="2024.4.40" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DropBear.Codex.Files --version 2024.4.40                
#r "nuget: DropBear.Codex.Files, 2024.4.40"                
#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 DropBear.Codex.Files as a Cake Addin
#addin nuget:?package=DropBear.Codex.Files&version=2024.4.40

// Install DropBear.Codex.Files as a Cake Tool
#tool nuget:?package=DropBear.Codex.Files&version=2024.4.40                

DropBear.Codex.Files

DropBear.Codex.Files is a .NET library designed to enhance file management capabilities, tailored specifically for applications that require robust handling of file operations. This includes streamlined processes for reading, writing, and updating files both locally and in blob storage, with an emphasis on performance and flexibility.

Features

  • Advanced File Operations: Supports advanced file operations such as reading, writing, updating (with and without deltas), and deleting files across different storage strategies.
  • Storage Strategy Flexibility: Incorporates a strategy pattern to allow operations to seamlessly switch between local file systems and blob storage, or use both concurrently.
  • Memory Efficiency: Utilizes RecyclableMemoryStreamManager for improved memory management, reducing large object heap (LOH) fragmentation.
  • Extensible Architecture: The use of factory and builder patterns facilitates easy customization and extension of storage manager functionalities.

Getting Started

Installation

To use DropBear.Codex.Files in your project, add the library via NuGet:

dotnet add package DropBear.Codex.Files

Usage

Here is a quickstart guide on using the library to manage files effectively:

// Initialize the FileManager with a specific storage strategy
var fileManager = new FileManagerBuilder()
    .WithMemoryStreamManager(new RecyclableMemoryStreamManager())
    .WithLocalStorage("C:\\Data")  // Optional: Configure local storage
    .WithBlobStorage("accountName", "accountKey", "containerName")  // Optional: Configure blob storage
    .SetStorageStrategy(StorageStrategy.Both)  // Choose storage strategy: BlobOnly, LocalOnly, or Both
    .Build();

// Use FileManager to write, read, update, and delete files
// Example code to write a file
fileManager.WriteToFileAsync(dropBearFile, "path/to/file").Wait();

Contribution

Contributions are welcome! If you have suggestions or want to contribute code, please feel free to create issues or pull requests on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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
2024.11.5 64 11/12/2024
2024.9.44 102 9/20/2024
2024.9.43 121 9/16/2024
2024.9.42 102 9/16/2024
2024.9.32 98 9/13/2024
2024.9.25 103 9/11/2024
2024.9.1 85 9/8/2024
2024.8.54 92 9/6/2024
2024.8.36 86 9/2/2024
2024.7.1 89 7/24/2024
2024.4.41 122 4/26/2024
2024.4.40 104 4/25/2024
2024.4.39 122 4/25/2024
2024.4.33 105 4/23/2024
2024.4.8 110 4/4/2024
2024.4.6 123 4/3/2024
2024.3.15 115 3/30/2024
2024.3.14 100 3/30/2024
2024.3.13 117 3/29/2024
2024.3.10 108 3/29/2024
2024.3.9 112 3/29/2024
2024.3.8 110 3/29/2024