VFSPathExtensions.MatchesGlob(thisVFSPath,string).md
January 20, 2026 ยท View on GitHub
Atypical.VirtualFileSystem.Core
Atypical.VirtualFileSystem.Core.Extensions.VFSPathExtensions
VFSPathExtensions.MatchesGlob(this VFSPath, string) Method
Checks if the path matches a glob pattern.
public static bool MatchesGlob(this Atypical.VirtualFileSystem.Core.VFSPath path, string pattern);
Parameters
path VFSPath
The VFS path.
pattern System.String
The glob pattern (e.g., "*.txt", "test*", "**/config.*").
Returns
System.Boolean
True if the path matches the pattern.