VFSSearchExtensions.WithNameStartingWith(thisIEnumerable_IFileNode_,string,bool).md
January 20, 2026 ยท View on GitHub
Atypical.VirtualFileSystem.Core
Atypical.VirtualFileSystem.Core.Extensions.VFSSearchExtensions
VFSSearchExtensions.WithNameStartingWith(this IEnumerable<IFileNode>, string, bool) Method
Filters files by name starting with specific text.
public static System.Collections.Generic.IEnumerable<Atypical.VirtualFileSystem.Core.Contracts.IFileNode> WithNameStartingWith(this System.Collections.Generic.IEnumerable<Atypical.VirtualFileSystem.Core.Contracts.IFileNode> files, string prefix, bool ignoreCase=true);
Parameters
files System.Collections.Generic.IEnumerable<IFileNode>
The files to filter.
prefix System.String
The prefix to search for.
ignoreCase System.Boolean
Whether to ignore case. Default is true.
Returns
System.Collections.Generic.IEnumerable<IFileNode>
Files with names starting with the specified prefix.