IFileSystemAsyncReadOperations

Namespace: TagBites.IO.Operations
Assembly: TagBites.IO.dll

Provides an asynchronous read operations mechanism for TagBites.IO.FileSystem.

public abstract interface IFileSystemAsyncReadOperations

Methods

GetLinkInfo(string)

Returns information about a file/directory for the specified full name.

public IFileSystemStructureLinkInfo GetLinkInfo(string fullName)

Result Type: IFileSystemStructureLinkInfo

Parameters

TypeName
stringfullNameThe full path of the directory or file.

Asynchronously retrieves a collection of strongly typed TagBites.IO.IFileSystemStructureLinkInfo objects representing the files and subdirectories that match the specified search criteria.

public Task<IList<IFileSystemStructureLinkInfo>> GetLinksAsync(DirectoryLink directory, FileSystem.ListingOptions options)

Result Type: Task<IList<IFileSystemStructureLinkInfo>>

Parameters

TypeName
DirectoryLinkdirectoryThe link to the searched directory.
FileSystem.ListingOptionsoptionsThe options for matching against the names of directories and files.

Asynchronously opens an existing file to read.

public Task<Stream> ReadFileAsync(FileLink file)

Result Type: Task<Stream>

Parameters

TypeName
FileLinkfileThe link to the file to be opened for reading.