To rename a file or directory on the remote system, locate and select (highlight) the file or directory that you would like to rename and do any one of the following:
Remote File -> Rename...
menu item
from the menu bar
Ctrl + R
(Command + R
on Mac
OS X) on your key board
Rename...
from the context menu
When you do any of the above actions, a new dialog titled
Rename Remote File or Directory
is displayed allowing you to specify a new name.
From
Enter the name of the file or directory that you would like
to rename.
If you have selected a file or
directory in the remote pane before opening the
Rename Remote File or Directory
dialog, the
From
field is pre-populated with the selected object's name.
To
Enter the new name for the file or directory that you are
renaming.
Rename
Clicking on this button would rename (or try to rename) the
file or directory and closes the
Rename Remote File or Directory
dialog.
Cancel
Clicking this button would discard the input you have
provided and closes the
Rename Remote File or Directory
dialog.
Help
Clicking this button displays this help topic.
In the
From
and
To
fields, you may enter absolute or relative path names. Below are a few
examples to demonstrate how the rename works based on the input you
provide. All examples assume that your current working directory is
set to
/wd
.
Example 1
If you enter
old.txt
in the
From
field and
new.txt
in the
To
field, the file
/wd/old.txt
will be renamed to
/wd/new.txt
.
Example 2
If you enter
old.txt
in the
From
field and
subDir/new.txt
in the
To
field, the file
/wd/old.txt
will be renamed to
/wd/subDir/new.txt
. In this case, the file is actually moved to another directory. Make
sure that the directory
/wd/subDir
exists in order for this to work.
Example 3
If you enter
/dir1/sample.txt
in the
From
field and
/dir2/sample.txt
in the
To
field, the file
sample.txt
will be moved from
/dir1
to
/dir2
.
All the above examples would work
well even with directories; i.e. you can rename or move directories
just the same way as you could with files.