close

open override fun close()(source)

Removes the directory and its contents, like remove, so use { } cleans up. Closing twice is harmless.

Throws

when the directory cannot be deleted.