getParent

fun getParent(): Path?

Get a path for the parent of the file this path is identifying, or null if this path identifies the root of its file hierarchy.

Return

a path for the parent of the file, or null