VFSPathExtensions.IsDirectChildOf(thisVFSPath,VFSPath).md
January 20, 2026 ยท View on GitHub
Atypical.VirtualFileSystem.Core
Atypical.VirtualFileSystem.Core.Extensions.VFSPathExtensions
VFSPathExtensions.IsDirectChildOf(this VFSPath, VFSPath) Method
Checks if a path is a child (direct descendant) of another path.
public static bool IsDirectChildOf(this Atypical.VirtualFileSystem.Core.VFSPath parentPath, Atypical.VirtualFileSystem.Core.VFSPath childPath);
Parameters
parentPath VFSPath
The potential parent path.
childPath VFSPath
The potential child path.
Returns
System.Boolean
True if childPath is a direct child of parentPath.