Rename

Description

Renames/moves a file from one path to another.

Format

N path|newpath

INFO: path and newpath are separated by a vertical bar/pipe/vertical slash ‘|’.

IMPORTANT: newpath must not already exist.

Parameters

  • path and newpath are absolute paths to a file/directory. A properly formatted path must begin with a “/” (forward slash) and begins at the root directory. Subdirectories are separated with “/” (forward slash).
    • e.g. /logs/january/jan3.log

Response Format

NULLSuccess
EnnAn error occurred

Example

Rename a file:

N /www/index.html|/www/index.htm

Move a directory:

N /www/images|/images