Interface IFileProvider
- Namespace
- Acuit.Pinpoint.FileProviders
- Assembly
- Acuit.Pinpoint.Configuration.dll
A read-only file provider abstraction.
public interface IFileProvider
Methods
GetDirectoryContents(string)
Enumerate a directory at the given path, if any.
IDirectoryContents GetDirectoryContents(string subpath)
Parameters
subpath
stringRelative path that identifies the directory.
Returns
- IDirectoryContents
Returns the contents of the directory.
GetFileInfo(string)
Locate a file at the given path.
IFileInfo GetFileInfo(string subpath)
Parameters
subpath
stringRelative path that identifies the file.
Returns
- IFileInfo
The file information. Caller must check Exists property.
Watch(string)
Creates a IChangeToken for the specified filter
.
IChangeToken Watch(string filter)
Parameters
filter
stringFilter string used to determine what files or folders to monitor. Example: /*.cs, ., subFolder//*.cshtml.
Returns
- IChangeToken
An IChangeToken that is notified when a file matching
filter
is added, modified or deleted.