https://github.com/axuno/virtualfilesystem
The Virtual File System makes it possible to manage files that do not exist on a physical file system (e.g. disk).
https://github.com/axuno/virtualfilesystem
embedded virtual-file-system virtual-files virtualfilesystem
Last synced: 7 months ago
JSON representation
The Virtual File System makes it possible to manage files that do not exist on a physical file system (e.g. disk).
- Host: GitHub
- URL: https://github.com/axuno/virtualfilesystem
- Owner: axuno
- License: lgpl-3.0
- Created: 2020-11-10T17:22:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-25T11:46:29.000Z (11 months ago)
- Last Synced: 2024-07-25T13:15:27.977Z (11 months ago)
- Topics: embedded, virtual-file-system, virtual-files, virtualfilesystem
- Language: C#
- Homepage:
- Size: 106 KB
- Stars: 16
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Axuno.VirtualFileSystem

The Virtual File System makes it possible to manage files that do not exist on a physical file system (e.g. disk).
* The `VirtualFileSystem` can be extended by additional `IVirtualFileProvider`s.
* Out-of-the-box, `Microsoft.Extensions.FileProviders.Composite`, `Microsoft.Extensions.FileProviders.Embedded` and `Microsoft.Extensions.FileProviders.Physical` are integrated.
* Virtual files can be used just like static files in an application.
* JavaScript, CSS, image files and all other file types can be embedded into assemblies and used just like the static files.
* An application (or library) can override an embedded file just by placing a static file with the same name and extension into the same folder of the virtual file system.The library is a modified version of [Volo.Abp.VirtualFileSystem](https://github.com/abpframework/abp/tree/dev/framework/src/Volo.Abp.VirtualFileSystem) 7.0
Modifications to the source code were made by axuno in 2020-23. Changes focused on:* Decouple Volo.Abp.VirtualFileSystem from all dependencies of the Abp Framework
* Use Microsoft DependencyInjection instead of [AutoFac](https://autofac.org/)
* Add a workaround, so that `VirtualFileProvider` will also find existing directories returned from `PhysicalFileProvider`. This means, that `VirtualFileProvider` behaves the same, never mind whether files are retrieved using `EmbeddedFileProvider` or `PhysicalFileProvider`.
* Change of namespaces### Get started
* [](https://www.nuget.org/packages/Axuno.VirtualFileSystem/) Install the NuGet package
* Read the [Virtual File System wiki](https://github.com/axuno/Axuno.VirtualFileSystem/wiki)