VFSPath.GetAbsoluteParentPath(int).md
January 20, 2026 ยท View on GitHub
Atypical.VirtualFileSystem.Core
Atypical.VirtualFileSystem.Core.VFSPath
VFSPath.GetAbsoluteParentPath(int) Method
Gets the absolute path of the parent directory with depth depthFromRoot. The root directory has a depth of 0. The depth of a file is the depth of its parent directory plus one. The depth of a directory is the depth of its parent directory plus one.
public Atypical.VirtualFileSystem.Core.VFSDirectoryPath GetAbsoluteParentPath(int depthFromRoot);
Parameters
depthFromRoot System.Int32
The depth of the parent directory from the root directory.
Returns
VFSDirectoryPath
The absolute path of the parent directory with depth depthFromRoot.
Exceptions
System.ArgumentOutOfRangeException
Thrown when the depth is negative.