WARNING: The [sjs-3] engine was deprecated, use [sjs-4] instead.

File.prototype.rename()

Rename a file.

Syntax

file.rename(name string)

Description

Rename a file.

Examples

Example.