VFSPathExtensions.GetDepth(thisVFSPath).md
January 20, 2026 ยท View on GitHub
Atypical.VirtualFileSystem.Core
Atypical.VirtualFileSystem.Core.Extensions.VFSPathExtensions
VFSPathExtensions.GetDepth(this VFSPath) Method
Gets the depth of the path (number of directory levels from root).
public static int GetDepth(this Atypical.VirtualFileSystem.Core.VFSPath path);
Parameters
path VFSPath
The VFS path.
Returns
System.Int32
The depth of the path.