InMemoryDirectoryInfo Class

Definition

Avoids using disk for uses like Pattern Matching.

public ref class InMemoryDirectoryInfo : Microsoft::Extensions::FileSystemGlobbing::Abstractions::DirectoryInfoBase
public class InMemoryDirectoryInfo : Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase
type InMemoryDirectoryInfo = class
    inherit DirectoryInfoBase
Public Class InMemoryDirectoryInfo
Inherits DirectoryInfoBase
Inheritance

Constructors

Name Description
InMemoryDirectoryInfo(String, IEnumerable<String>)

Creates a new InMemoryDirectoryInfo with the root directory and files given.

Properties

Name Description
FullName

Gets the full path of the file or directory.

Name

Gets the name of the file or directory.

ParentDirectory

Gets the parent directory for the current file or directory.

Methods

Name Description
EnumerateFileSystemInfos()

Enumerates all files and directories in the directory.

GetDirectory(String)

Returns an instance of DirectoryInfoBase that represents a subdirectory.

GetFile(String)

Returns an instance of FileInfoBase that matches the path given.

Applies to