Freigeben über


IFileSystemProvider Interface

Definition

Allows access to a particular file system, identified by Scheme.

public interface class IFileSystemProvider
public interface IFileSystemProvider
type IFileSystemProvider = interface
Public Interface IFileSystemProvider
Derived

Methods

CopyAsync(Uri, Uri, Boolean, IProgress<OperationProgressData>, CancellationToken)

Copies a file or directory.

CreateDirectoryAsync(Uri, CancellationToken)

Creates a directory.

DeleteAsync(Uri, Boolean, IProgress<OperationProgressData>, CancellationToken)

Deletes a file or directory.

EnumerateDirectoriesAsync(Uri, String, SearchOption, CancellationToken)

Enumerates the child directories of a directory.

EnumerateDirectoryEntriesAsync(Uri, String, SearchOption, CancellationToken)

Enumerates the files and child directories of a directory.

EnumerateFilesAsync(Uri, String, SearchOption, CancellationToken)

Enumerates the files of a directory.

GetInfoAsync(Uri, CancellationToken)

Gets metadata about a file or directory.

GetRootEntriesAsync(CancellationToken)

Gets the root entries of the provider's namespace. For instance, the root entries for a provider for the local machine's file system might represent the physical drives on the local machine.

MoveAsync(Uri, Uri, Boolean, IProgress<OperationProgressData>, CancellationToken)

Moves or renames a file or directory.

ReadFileAsync(Uri, PipeWriter, CancellationToken)

Reads the contents of a file into a pipe.

UnwatchAsync(WatchResult, CancellationToken)

Stops watching a file or directory for changes.

WatchDirectoryAsync(Uri, Boolean, CancellationToken)

Starts watching a directory for changes. A DirectoryEntryChanged event occurs under the following circumstances:

1. A file in the directory specified by uri is created, deleted, or modified.

2. A child directory in the directory specified by uri is created or deleted.

3. If recursive is true, a change described by #1 or #2 occurs in any child directory of the directory specified by uri.

WatchFileAsync(Uri, CancellationToken)

Starts watching a file for changes. A DirectoryEntryChanged event occurs when the file specified by uri is created, deleted, or modified.

WriteFileAsync(Uri, PipeReader, Boolean, CancellationToken)

Writes data to a file, replacing its entire contents if the file already exists.

Events

DirectoryEntryChanged

Occurs when a file passed to WatchFileAsync(Uri, CancellationToken) or directory passed to WatchDirectoryAsync(Uri, Boolean, CancellationToken) changes.

RootEntriesChanged

Occurs when the root elements of the provider's namespace change.

Applies to