FileProviderSystem
public class FileProviderSystem : FileSystemBase, IFileSystemBrowse, IFileSystem, IFileSystemObserve, IFileSystemOpen
File system that reads, observes and browses files from IFileProvider source.
File watcher.
Source file provider. This value is nulled on dispose.
Optional subpath within the source fileProvider.
Source file provider. This value is nulled on dispose.
public FileProviderSystem(IFileProvider fileProvider, string subpath = null, bool canBrowse = true, bool canObserve = true, bool canOpen = true)
Create file provider based file system.
Add disposable to list of objects to be disposed along with the system.
Browse a directory for file and subdirectory entries.
Tests whether a file or directory exists.
Attach an observer on to a single file or directory.
Observing a directory will observe the whole subtree.
Open a file for reading.
Remove disposable from dispose list.