9-9
9 FTP Server
CJ-series EtherNet/IP Units Operation Manual for NJ-series CPU Unit (W495)
9-5 Using FTP Commands
9
9-5-2 Using the Commands
Format
rename current_file_name new_file_name
Function
• Changes the specified current file name to the specified new file name.
• If the new file name is already used on the remote host (on the SD Memory Card), the existing file
is overwritten by the file for which the name was changed.
•rename can be used only to change the file name. It cannot be used to move the file to a different
directory.
Format
mkdir directory_name
Function
• Creates a directory of the specified name at the remote host (on the SD Memory Card).
• An error will occur if a file or directory of the same name already exists in the working directory.
Format
rmdir directory_name
Function
• Deletes the directory with the specified name from the remote host (from the SD Memory Card).
• The directory must be empty to delete it.
• An error will occur if the specified directory does not exist or is not empty.
Format
pwd
Function
• Displays the work directory on the remote host.
Format
cd [directory_name]
Function
• Changes the remote host work directory to the specified remote directory.
rename
mkdir
rmdir
pwd
cd