createOrExistsDir

open fun createOrExistsDir(dirPath: String): Boolean

Create a directory if it doesn't exist, otherwise do nothing.

Return

{@code true}: exists or creates successfully{@code false}: otherwise

Parameters

dirPath

The path of directory.

open fun createOrExistsDir(file: File): Boolean

Create a directory if it doesn't exist, otherwise do nothing.

Return

{@code true}: exists or creates successfully{@code false}: otherwise

Parameters

file

The file.