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

TypeName
stringpathThe 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

TypeName
stringfullNameThe full path of the directory or file.

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

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

Opens an existing file to read.

public Stream ReadFile(FileLink file)

Result Type: Stream

Parameters

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