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 file system. Initializes an instance of that wraps an instance of . The directory to represent. Gets a value that's always -1. Gets the time when the directory was last written to. Gets a value that's always . Always throws an exception because read streams are not support on directories. In all cases. Never returns. Represents a file on a physical file system. Initializes an instance of that wraps an instance of . The . Gets a value that's always . Watches a physical file system for changes and 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's watching . for the poller to 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 . for the poller to 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 . A globbing pattern for files and directories to watch. A change token for all files that match the filter. Globbing patterns are relative to the root directory given in the constructor . Globbing patterns are interpreted by . is . 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. Polling occurs every 4 seconds. This change token does not raise any change callbacks. Callers should watch for to turn from to 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. Gets a value that's always . Gets a value that indicates whether the file has changed since the change token was created. Once the file changes, this value is always . Change tokens should not reused 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 no-ops 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 to represent. Initializes an instance of . The directory to represent. 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. 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 . 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. Gets or sets a value that determines if this instance of actively polls for file changes. if the returned by actively polls for file changes ( will be ) instead of being passive. 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 . This property is only effective when is set. Disposes the provider. Change tokens may not trigger after the provider is disposed. Disposes the provider. true is invoked from . Gets the root directory for this instance. Locates 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 the property. Enumerates a directory at the given path, if any. A path under the root directory. Leading slashes are ignored. The contents of the directory. The caller must check the property. Returns 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 . Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection. Non-negative number required. 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. The hash algorithm name cannot be null or empty. Unexpected type of FileSystemInfo The type '{0}' is not supported on this platform, use polling instead.