parent

abstract fun parent(path: Path): Path?(source)

Gets the parent path of a given path. This method works with the path structure and doesn't check if the path actually exists in the filesystem.

Return

The parent path or null if no parent exists.

Parameters

path

The path to examine.