File.fileRename()

Signature

boolean fileRename (String srcPath, String destPath)

Domain

ACTION

Description

Renames the specified file or directory.

Parameters

NameTypeDescription
srcPathStringThe original (/current) file or directory name.
destPathStringThe target file or directory name.

Returns

TypeDescription
booleanReturns true if the rename is successful; false otherwise.

Cautions

none