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

File.prototype.rename()

Rename a file.

Syntax

file.rename(name string)

Description

Rename a file.

Examples

Example.

Subscribe to our newsletter!