createFileByDeleteOldFile

open fun createFileByDeleteOldFile(filePath: String): Boolean

Create a file if it doesn't exist, otherwise delete old file before creating.

Return

{@code true}: success{@code false}: fail

Parameters

filePath

The path of file.

open fun createFileByDeleteOldFile(file: File): Boolean

Create a file if it doesn't exist, otherwise delete old file before creating.

Return

{@code true}: success{@code false}: fail

Parameters

file

The file.