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. Attribute used to indicate a source generator should create a function for marshalling arguments instead of relying on the runtime to generate an equivalent marshalling function at run-time. This attribute is meaningless if the source generator associated with it is not enabled. The current built-in source generator only supports C# and only supplies an implementation when applied to static, partial, non-generic methods. Initializes a new instance of the . Name of the library containing the import. Gets the name of the library containing the import. Gets or sets the name of the entry point to be called. Gets or sets how to marshal string arguments to the method. If this field is set to a value other than , must not be specified. Gets or sets the used to control how string arguments to the method are marshalled. If this field is specified, must not be specified or must be set to . Gets or sets whether the callee sets an error (SetLastError on Windows or errno on other platforms) before returning from the attributed method. Specifies how strings should be marshalled for generated p/invokes Indicates the user is suppling a specific marshaller in . Use the platform-provided UTF-8 marshaller. Use the platform-provided UTF-16 marshaller. Base type for all platform-specific API attributes. Records the platform that the project targeted. Records the operating system (and minimum version) that supports an API. Multiple attributes can be applied to indicate support on multiple operating systems. Callers can apply a or use guards to prevent calls to APIs on unsupported operating systems. A given platform should only be specified once. Marks APIs that were removed in a given operating system version. Primarily used by OS bindings to indicate APIs that are only available in earlier versions. Marks APIs that were obsoleted in a given operating system version. Primarily used by OS bindings to indicate APIs that should not be used anymore. Annotates a custom guard field, property or method with a supported platform name and optional version. Multiple attributes can be applied to indicate guard for multiple supported platforms. Callers can apply a to a field, property or method and use that field, property or method in a conditional or assert statements in order to safely call platform specific APIs. The type of the field or property should be boolean, the method return type should be boolean in order to be used as platform guard. Annotates the custom guard field, property or method with an unsupported platform name and optional version. Multiple attributes can be applied to indicate guard for multiple unsupported platforms. Callers can apply a to a field, property or method and use that field, property or method in a conditional or assert statements as a guard to safely call APIs unsupported on those platforms. The type of the field or property should be boolean, the method return type should be boolean in order to be used as platform guard. 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. Specifies that null is allowed as an input even if the corresponding type disallows it. Specifies that null is disallowed as an input even if the corresponding type allows it. Specifies that an output may be null even if the corresponding type disallows it. Specifies that an output will not be null even if the corresponding type allows it. Specifies that an input argument was not null when the call returns. Specifies that when a method returns , the parameter may be null even if the corresponding type disallows it. Initializes the attribute with the specified return value condition. The return value condition. If the method returns this value, the associated parameter may be null. Gets the return value condition. Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it. Initializes the attribute with the specified return value condition. The return value condition. If the method returns this value, the associated parameter will not be null. Gets the return value condition. Specifies that the output will be non-null if the named parameter is non-null. Initializes the attribute with the associated parameter name. The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null. Gets the associated parameter name. Applied to a method that will never return under any circumstance. Specifies that the method will not return if the associated Boolean parameter is passed the specified value. Initializes the attribute with the specified parameter value. The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to the associated parameter matches this value. Gets the condition parameter value. Specifies that the method or property will ensure that the listed field and property members have not-null values. Initializes the attribute with a field or property member. The field or property member that is promised to be not-null. Initializes the attribute with the list of field and property members. The list of field and property members that are promised to be not-null. Gets field or property member names. Specifies that the method or property will ensure that the listed field and property members have not-null values when returning with the specified return value condition. Initializes the attribute with the specified return value condition and a field or property member. The return value condition. If the method returns this value, the associated parameter will not be null. The field or property member that is promised to be not-null. Initializes the attribute with the specified return value condition and list of field and property members. The return value condition. If the method returns this value, the associated parameter will not be null. The list of field and property members that are promised to be not-null. Gets the return value condition. Gets field or property member names.