parentPath

@get:JvmName(name = "parentPathOf")
val File.parentPath: String?(source)

The path parent. If no parent is available, null is returned.

e.g.

assertEquals("hello", "hello/world".toFile().parentPath)
assertNull("world".toFile().parentPath)