InMemoryDirectoryInfo class
Represents an in-memory directory for pattern matching without accessing the file system.
Useful for testing glob patterns or matching against virtual file systems.
- Implemented types
Constructors
-
InMemoryDirectoryInfo(String path, {List<
FileSystemInfoBase> ? files, DirectoryInfoBase? parent}) - Creates an in-memory directory with the specified path and children.
Properties
- fullName → String
-
A string containing the full path of the file or directory
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
A string containing the name of the file or directory
no setteroverride
- parentDirectory → DirectoryInfoBase?
-
The parent directory for the current file or directory
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
enumerateFileSystemInfos(
) → Iterable< FileSystemInfoBase> -
Enumerates all files and directories in the directory.
override
-
getDirectory(
String path) → DirectoryInfoBase? -
Returns an instance of DirectoryInfoBase that represents a subdirectory
override
-
getFile(
String path) → FileInfoBase? -
Returns an instance of FileInfoBase that represents a file in the
directory
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited