isSubPathOf

fun isSubPathOf(ancestor: FsEntry): Boolean

Whether this entry is located in ancestor or any of its subdirectories. Both paths are canonicalized when possible, so a symbolic link inside ancestor pointing outside it is correctly detected as not being a sub-path.