https://github.com/vector-man/fluentfilesystem
Fluent File System for .NET is a filesystem abstraction library.
https://github.com/vector-man/fluentfilesystem
abstraction abstraction-layer csharp-library files filesystem library microservices-architecture mit-license
Last synced: over 1 year ago
JSON representation
Fluent File System for .NET is a filesystem abstraction library.
- Host: GitHub
- URL: https://github.com/vector-man/fluentfilesystem
- Owner: vector-man
- License: mit
- Created: 2023-09-17T23:57:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-18T12:33:29.000Z (almost 3 years ago)
- Last Synced: 2025-01-14T23:46:44.053Z (over 1 year ago)
- Topics: abstraction, abstraction-layer, csharp-library, files, filesystem, library, microservices-architecture, mit-license
- Language: C#
- Homepage: https://www.yottanext.com
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FluentFileSystem
FluentFileSystem (or FFS) for .NET is a filesystem abstraction library. FluentFileSystem intends to make dealing with the filesystem easier, by treating each directory and file as an object.
Because of its design, custom filesystems can be plugged in to further enhance the library.
## Examples:
// First, create a FileSystemService.
var fileSystemService = FileSystemService(new FileSystem());
// Chaining:
// Get a file called "C.txt" in sub directory "A\B" of "C:\Users\":
var directory = fileSystemService.GetDirectory("C:\Users\");
var fileTwoLevelsDown = directory.GetDirectory("A").GetDirectry("B").GetFile("C.txt");
// LINQ Querying:
var bigFilesInDirectory = directory.GetFiles().Where(x=> x.Length > 10737418240);
// File Copying:
var newFile = directory.GetFile("newNonExistingFile.txt");
await fileTwoLevelsDown.CopyToAsync(newFile, overwrite: false, CancellationToken.None);
Contributors to this project are welcome to add their attribution information to the project under the Contributors section below:
# Contributors
# License
MIT.
# FluentFileSystem Copyright
Copyright (c) 2023 Michael D. Corbett
Email: michael@mdcorbett.com
Github: https://github.com/vector-man
Website: https://mdcorbett.com