isAncestor(of:)

Returns true if the path is an ancestor of the given path.

AbsolutePath.swift:222
func isAncestor(of descendant: AbsolutePath) -> Bool

This method is strictly syntactic and does not access the file system in any way.