Microsoft.Extensions.FileProviders.Physical
Specifies filtering behavior for files or directories.
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 the name begins with period.
Exclude files and directories when is set on .
Exclude files and directories when is set on .
Do not exclude any files.
Represents a directory on a physical filesystem
Initializes an instance of that wraps an instance of
The directory
Always equals -1.
The time when the directory was last written to.
Always true.
Always throws an exception because read streams are not support on directories.
Always thrown
Never returns
Represents a file on a physical filesystem
Initializes an instance of that wraps an instance of
The
Always false.
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
True 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
True 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
A change token for all files that match the filter
When is null
Disposes the provider. Change tokens may not trigger after the provider is disposed.
Disposes the provider.
true is invoked from .
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.
Polling occurs every 4 seconds.
Initializes a new instance of that polls the specified file for changes as
determined by .
The to poll
Always false.
True when the file has changed since the change token was created. Once the file changes, this value is always true
Once true, the value will always be true. Change tokens should not re-used once expired. The caller should discard this
instance once it sees is true.
Does not actually register callbacks.
This parameter is ignored
This parameter is ignored
A disposable object that noops when disposed
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.
Represents the contents of a physical file directory
Initializes an instance of
The directory
Initializes an instance of
The directory
Specifies which files or directories are excluded from enumeration.
Looks up files using the on-disk file system
When the environment variable "DOTNET_USE_POLLING_FILE_WATCHER" is set to "1" or "true", calls to
will use .
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.
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 true or 1, this property defaults to true; otherwise false.
Gets or sets a value that determines if this instance of
actively polls for file changes.
When , returned by will actively poll for file changes
( will be ) instead of being passive.
This property is only effective when is set.
The default value of this property is determined by the value of environment variable named DOTNET_USE_POLLING_FILE_WATCHER.
When true or 1, this property defaults to true; otherwise false.
Disposes the provider. Change tokens may not trigger after the provider is disposed.
Disposes the provider.
true is invoked from .
The root directory for this instance.
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.
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.
Creates a for the specified .
Globbing patterns are interpreted by .
Filter string used to determine what files or folders to monitor. Example: **/*.cs, *.*,
subFolder/**/*.cshtml.
An that is notified when a file matching is added,
modified or deleted. Returns a if has invalid filter
characters or if is an absolute path or outside the root directory specified in the
constructor .
Throws an if is null.
The reference type argument to validate as non-null.
The name of the parameter with which corresponds.
The fileSystemWatcher parameter must be non-null when pollForChanges is false.
Cannot create a stream for a directory.
Cannot modify {0} once file watcher has been initialized.
Unexpected type of FileSystemInfo
The type '{0}' is not supported on this platform, use polling instead.