DropBear.Codex.Files
2024.4.40
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
<PackageReference Include="DropBear.Codex.Files" Version="2024.4.40" />
paket add DropBear.Codex.Files --version 2024.4.40
#r "nuget: DropBear.Codex.Files, 2024.4.40"
// 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 | Versions 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. |
-
net8.0
- DropBear.Codex.AppLogger (>= 2024.4.10)
- DropBear.Codex.Core (>= 2024.4.5)
- DropBear.Codex.Serialization (>= 2024.4.14)
- DropBear.Codex.Utilities (>= 2024.4.17)
- DropBear.Codex.Validation (>= 2024.4.1)
- FastRsyncNet (>= 2.4.0)
- FastRsyncNet.Compression (>= 1.1.0)
- FluentStorage.Azure.Blobs (>= 5.2.2)
- Microsoft.IO.RecyclableMemoryStream (>= 3.0.0)
- System.IO.FileSystem.AccessControl (>= 5.0.0)
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 |