VFSPathExtensions.IsAncestorOf(thisVFSPath,VFSPath).md
January 20, 2026 ยท View on GitHub
Atypical.VirtualFileSystem.Core
Atypical.VirtualFileSystem.Core.Extensions.VFSPathExtensions
VFSPathExtensions.IsAncestorOf(this VFSPath, VFSPath) Method
Checks if a path is a descendant of another path.
public static bool IsAncestorOf(this Atypical.VirtualFileSystem.Core.VFSPath ancestorPath, Atypical.VirtualFileSystem.Core.VFSPath descendantPath);
Parameters
ancestorPath VFSPath
The potential ancestor path.
descendantPath VFSPath
The potential descendant path.
Returns
System.Boolean
True if descendantPath is under ancestorPath.