rename

open fun rename(filePath: String, newName: String): Boolean

Rename the file.

Return

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

Parameters

filePath

The path of file.

newName

The new name of file.

open fun rename(file: File, newName: String): Boolean

Rename the file.

Return

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

Parameters

file

The file.

newName

The new name of file.