DropBear.Codex.Files 2024.4.41

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.41                
NuGet\Install-Package DropBear.Codex.Files -Version 2024.4.41                
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.41" />                
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.41                
#r "nuget: DropBear.Codex.Files, 2024.4.41"                
#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.41

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

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 81 11/12/2024
2024.9.44 105 9/20/2024
2024.9.43 124 9/16/2024
2024.9.42 105 9/16/2024
2024.9.32 101 9/13/2024
2024.9.25 106 9/11/2024
2024.9.1 88 9/8/2024
2024.8.54 95 9/6/2024
2024.8.36 89 9/2/2024
2024.7.1 92 7/24/2024
2024.4.41 127 4/26/2024
2024.4.40 107 4/25/2024
2024.4.39 127 4/25/2024
2024.4.33 108 4/23/2024
2024.4.8 113 4/4/2024
2024.4.6 126 4/3/2024
2024.3.15 118 3/30/2024
2024.3.14 103 3/30/2024
2024.3.13 120 3/29/2024
2024.3.10 111 3/29/2024
2024.3.9 115 3/29/2024
2024.3.8 113 3/29/2024