Interface IFileSystemDirectory
- Namespace
- DirectoryToObject
- Assembly
- DirectoryToObject.dll
Abstraction of the file system from the viewpoint of a directory.
public interface IFileSystemDirectory
Properties
FullName
The full path name of the directory, if it is in the file system. This may also be the URL of the directory if it is in an archive or a remote location.
string FullName { get; }
Property Value
Methods
EnumerateContentsAsync()
Get information about the contents of the directory.
Task<IEnumerable<IFileSystemEntry>> EnumerateContentsAsync()
Returns
- Task<IEnumerable<IFileSystemEntry>>
A task that represents an enumerable collection of the file system entries in the directory.
OpenDirectoryEntry(string)
Read the contents of a file as a stream of bytes or open a subdirectory.
Task<StreamOrDirectory> OpenDirectoryEntry(string entryName)
Parameters
entryNamestringThe name of the entry to open in the enclosing directory.
Returns
- Task<StreamOrDirectory>
A task that represents the StreamOrDirectory of the file or directory contents.
Remarks
Only supports opening entries directly in the directory, not in subdirectories.