createOrExistsFile

open fun createOrExistsFile(filePath: String): Boolean

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

Return

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

Parameters

filePath

The path of file.

open fun createOrExistsFile(file: File): Boolean

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

Return

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

Parameters

file

The file.