parent

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

Retrieves the parent directory/path of the given path.

Return

The parent path of the given path, or null if the path has no parent.

Parameters

path

The path for which the parent directory is to be determined.