VFS.FindDirectories.md

January 20, 2026 ยท View on GitHub

Atypical.VirtualFileSystem.Core

Atypical.VirtualFileSystem.Core.VFS

VFS.FindDirectories Method

Overloads
FindDirectories(Func<IDirectoryNode,bool>)Finds all directory nodes that match the specified predicate.
FindDirectories(Regex)Finds all directory nodes that match the specified regular expression. The regular expression must be relative to the root directory.

VFS.FindDirectories(Func<IDirectoryNode,bool>) Method

Finds all directory nodes that match the specified predicate.

public System.Collections.Generic.IEnumerable<Atypical.VirtualFileSystem.Core.Contracts.IDirectoryNode> FindDirectories(System.Func<Atypical.VirtualFileSystem.Core.Contracts.IDirectoryNode,bool> predicate);

Parameters

predicate System.Func<IDirectoryNode,System.Boolean>

The predicate.

Implements FindDirectories(Func<IDirectoryNode,bool>)

Returns

System.Collections.Generic.IEnumerable<IDirectoryNode>
The directory nodes.

VFS.FindDirectories(Regex) Method

Finds all directory nodes that match the specified regular expression. The regular expression must be relative to the root directory.

public System.Collections.Generic.IEnumerable<Atypical.VirtualFileSystem.Core.Contracts.IDirectoryNode> FindDirectories(System.Text.RegularExpressions.Regex regexPattern);

Parameters

regexPattern System.Text.RegularExpressions.Regex

The regular expression pattern.

Implements FindDirectories(Regex)

Returns

System.Collections.Generic.IEnumerable<IDirectoryNode>
The directory nodes.