Linger.FileSystem
0.3.2-alpha
See the version list below for details.
dotnet add package Linger.FileSystem --version 0.3.2-alpha
NuGet\Install-Package Linger.FileSystem -Version 0.3.2-alpha
<PackageReference Include="Linger.FileSystem" Version="0.3.2-alpha" />
<PackageVersion Include="Linger.FileSystem" Version="0.3.2-alpha" />
<PackageReference Include="Linger.FileSystem" />
paket add Linger.FileSystem --version 0.3.2-alpha
#r "nuget: Linger.FileSystem, 0.3.2-alpha"
#addin nuget:?package=Linger.FileSystem&version=0.3.2-alpha&prerelease
#tool nuget:?package=Linger.FileSystem&version=0.3.2-alpha&prerelease
Linger.FileSystem
Overview
Linger.FileSystem is a feature-rich C# file system helper library that provides a set of tools to simplify file and directory operations. The library aims to make developers more efficient in handling file system related tasks, including file upload and download.
Table of Contents
Features
- Simplified file operation APIs
- Secure file read/write functionality
- Path processing utilities
- Cross-platform compatibility
- Asynchronous file operation support
- File upload and download capabilities
Supported .NET Versions
This library supports the following .NET applications:
- .NET Framework 4.6.2+
- .NET Standard 2.0+
- .NET Core 2.0+/.NET 5+
Installation
Install via NuGet Package Manager:
Install-Package Linger.FileSystem
Or using .NET CLI:
dotnet add package Linger.FileSystem
Usage Examples
using Linger.FileSystem;
// Basic file operations
var fileHelper = new FileHelper();
await fileHelper.WriteTextAsync("path/to/file.txt", "Hello World!");
var content = await fileHelper.ReadTextAsync("path/to/file.txt");
// Directory operations
var dirHelper = new DirectoryHelper();
dirHelper.CreateDirectory("path/to/directory");
var files = dirHelper.GetFiles("path/to/directory", "*.txt");
// LocalFileSystem operations
var localFS = new LocalFileSystem();
// Create and write to a file
await localFS.WriteAllTextAsync("local/path/to/file.txt", "Content to write");
// Check if file exists
bool exists = await localFS.FileExistsAsync("local/path/to/file.txt");
Console.WriteLine($"File exists: {exists}");
// Read file content
string fileContent = await localFS.ReadAllTextAsync("local/path/to/file.txt");
Console.WriteLine(fileContent);
// Copy file
await localFS.CopyAsync("source/file.txt", "destination/file.txt", true);
// Delete file
await localFS.DeleteFileAsync("local/path/to/file.txt");
// Upload and Download operations with LocalFileSystem
// Upload a file to a remote server
using (var fileStream = File.OpenRead("local/file/path.txt"))
{
await localFS.UploadAsync(fileStream, "remote/destination/path.txt");
}
// Download a file from a remote server
await localFS.DownloadAsync("remote/source/file.txt", "local/destination/file.txt");
// Stream-based download
using (var destinationStream = File.Create("local/path/downloaded.file"))
{
await localFS.DownloadToStreamAsync("remote/path/file", destinationStream);
}
Contributing
Pull requests and issues are welcome to help us improve this library.
License
MIT
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Linger.Utils (>= 0.3.2-alpha)
-
net8.0
- Linger.Utils (>= 0.3.2-alpha)
-
net9.0
- Linger.Utils (>= 0.3.2-alpha)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Linger.FileSystem:
Package | Downloads |
---|---|
Linger.FileSystem.Sftp
An SFTP implementation of the Linger FileSystem abstraction. Provides a secure file transfer protocol client using SSH.NET for file operations. Supports both password and certificate-based authentication with configurable retry capabilities. |
|
Linger.FileSystem.Ftp
An FTP implementation of the Linger FileSystem abstraction. Provides a robust and retry-capable FTP client for file operations using FluentFTP. Supports common file system operations such as uploading, downloading, listing, and deleting files. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
0.7.2 | 173 | 6/3/2025 |
0.7.1 | 176 | 5/21/2025 |
0.7.0 | 180 | 5/19/2025 |
0.6.0-alpha | 180 | 4/28/2025 |
0.5.0-alpha | 190 | 4/10/2025 |
0.4.0-alpha | 181 | 4/1/2025 |
0.3.3-alpha | 181 | 3/19/2025 |
0.3.2-alpha | 170 | 3/17/2025 |
0.3.1-alpha | 165 | 3/16/2025 |
0.3.0-alpha | 247 | 3/6/2025 |
0.2.0-alpha | 141 | 2/9/2025 |
0.1.2-alpha | 102 | 12/17/2024 |
0.1.1-alpha | 107 | 12/17/2024 |
0.1.0-alpha | 108 | 12/6/2024 |
0.0.4-alpha | 88 | 12/6/2024 |
0.0.3-alpha | 124 | 8/9/2024 |
0.0.2-alpha | 103 | 8/9/2024 |
0.0.1-alpha | 90 | 8/7/2024 |