Delen via


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

InMemoryDirectoryInfo(String, IEnumerable<String>)

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

Properties

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

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