IFileSystemReadOperations
Namespace: TagBites.IO.Operations
Assembly: TagBites.IO.dll
Provides an read operations mechanism for TagBites.IO.FileSystem.
public abstract interface IFileSystemReadOperations
Methods
CorrectPath(string)
Gets a correct path for specified path.
public string CorrectPath(string path)
Result Type: string
Parameters
Type | Name | |
---|---|---|
string | path | The path to correct. |
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. |
GetLinks(DirectoryLink, FileSystem.ListingOptions)
Retrieves a collection of information about files and subdirectories that match the specified search options.
public IList<IFileSystemStructureLinkInfo> GetLinks(DirectoryLink directory, FileSystem.ListingOptions options)
Result Type: 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. |
ReadFile(FileLink)
Opens an existing file to read.
public Stream ReadFile(FileLink file)
Result Type: Stream
Parameters
Type | Name | |
---|---|---|
FileLink | file | The link to the file to be opened for reading. |