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
Type | Name | |
---|---|---|
string | fullName | The full path of the directory or file. |
GetLinksAsync(DirectoryLink, FileSystem.ListingOptions)
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
Type | Name | |
---|---|---|
DirectoryLink | directory | The link to the searched directory. |
FileSystem.ListingOptions | options | The options for matching against the names of directories and files. |
ReadFileAsync(FileLink)
Asynchronously opens an existing file to read.
public Task<Stream> ReadFileAsync(FileLink file)
Parameters
Type | Name | |
---|---|---|
FileLink | file | The link to the file to be opened for reading. |