Microsoft.Extensions.FileProviders.Physical
Specifies filtering behavior for files or directories.
Exclude files and directories when the name begins with period.
Exclude files and directories when is set on .
Do not exclude any files.
Equivalent to DotPrefixed | Hidden | System. Exclude files and directories when the name begins with a period, or has either or is set on .
Exclude files and directories when is set on .
Represents a directory on a physical filesystem.
Initializes an instance of that wraps an instance of
The directory
Always throws an exception because read streams are not support on directories.
Always thrown
Never returns
Determines if the resource exists in the underlying storage system.
if the resource exists in the underlying storage system; otherwise.
Always true.
The time when the directory was last written to.
Always equals -1.
Gets the name of the file or directory, excluding the path.
A string representing the name of the file or directory.
Gets the full path to the file, including the file name.
A string representing the full path to the file, or if the file is not directly accessible.
Represents a file on a physical filesystem.
Initializes an instance of that wraps an instance of
The
Returns the file contents as a read-only stream.
A read-only stream.
Determines if the resource exists in the underlying system.
if the resource exists in the underlying storage system; otherwise.
Always false.
Gets the last time the file was modified.
A datetime offset representing the last time the file was modified.
The length of the file in bytes, or -1 for a directory or non-existing files.
The name of the file or directory, not including any path.
The path to the file, including the file name. Return if the file is not directly accessible.
A file watcher that watches a physical filesystem for changes.
Triggers events on when files are created, change, renamed, or deleted.
Initializes an instance of that watches files in . Wraps an instance of .
Root directory for the watcher.
The wrapped watcher that is watching .
when the watcher should use polling to trigger instances of created by .
Initializes an instance of that watches files in . Wraps an instance of .
Root directory for the watcher.
The wrapped watcher that is watching .
when the watcher should use polling to trigger instances of
created by .
Specifies which files or directories are excluded. Notifications of changes to are not raised to these.
Creates an instance of for all files and directories that match the .
Globbing patterns are relative to the root directory given in the constructor . Globbing patterns are interpreted by .
A globbing pattern for files and directories to watch.
When is null.
A change token for all files that match the filter.
Disposes the provider. Change tokens may not trigger after the provider is disposed.
Disposes the provider.
If , is invoked from .
Destructor for .
A change token that polls for file system changes.
This change token does not raise any change callbacks. Callers should watch for to turn
from false to true
and dispose the token after this happens.
Initializes a new instance of that polls the specified file for changes as
determined by .
The to poll
Does not actually register callbacks.
This parameter is ignored
This parameter is ignored
A disposable object that noops when disposed
Always false.
True when the file has changed since the change token was created. Once the file changes, this value is always true.
A polling based for wildcard patterns.
Initializes a new instance of .
The root of the file system.
The pattern to watch.
Gets the last write time of the file at the specified .
The root relative path.
The that the file was last modified.
Registers for a callback that will be invoked when the entry has changed.
MUST be set before the callback is invoked.
The to invoke.
State to be passed into the callback.
An that is used to unregister the callback.
Indicates if this token will pro-actively raise callbacks. If , the token consumer must poll to detect changes.
Gets a value that indicates if a change has occurred.
Looks up files using the on-disk file system.
Initializes a new instance of a PhysicalFileProvider at the given root directory.
The root directory. This should be an absolute path.
Initializes a new instance of a PhysicalFileProvider at the given root directory.
The root directory. This should be an absolute path.
Specifies which files or directories are excluded.
Disposes the provider. Change tokens may not trigger after the provider is disposed.
Disposes the provider.
is invoked from .
Destructor for .
Enumerate a directory at the given path, if any.
A path under the root directory. Leading slashes are ignored.
Contents of the directory. Caller must check property. if
is absolute, if the directory does not exist, or has invalid
characters.
.
Locate a file at the given path by directly mapping path segments to physical directories.
A path under the root directory
The file information. Caller must check property.
Creates an for the specified .
Globbing patterns are interpreted by .
Filter string used to determine what files or folders to monitor. Examples: \*\*/\*.cs, \*.\*, subfolder/\*\*/\*.cshtml.
An that's notified when a file matching is added, modified, or deleted.
OR
A if has invalid filter characters or is an absolute path or is outside the root directory specified in the constructor .
The root directory for this instance.
Gets or sets a value that determines if this instance of
actively polls for file changes.
When , the returned by actively polls for file changes
( is ) instead of being passive.
This property is only effective when is set.
The default value of this property is determined by the value of the environment variable named DOTNET_USE_POLLING_FILE_WATCHER.
When or 1, this property defaults to ; otherwise .
Gets or sets a value that determines if this instance of
uses polling to determine file changes.
By default, uses to listen to file change events for . is ineffective in some scenarios such as mounted drives. Polling is required to effectively watch for file changes.
The default value of this property is determined by the value of environment variable named DOTNET_USE_POLLING_FILE_WATCHER. When or 1, this property defaults to ; otherwise .