parent

open suspend override fun parent(path: Path): Path?(source)

Retrieves the parent directory of the specified path, if it exists.

Return

the parent path if it exists, or null if the path does not have a parent

Parameters

path

the path for which to retrieve the parent directory