
81
FTP File Operations
Cha
p
te
r 6
F
ile
O
per
at
ions
• B: Block mode
• C: Compressed mode
Input example:
MODE S
LIST
Sends a list of files from this unit to the remote computer.
Command syntax: LIST <SP> <options> <SP> <path-
name> <CRLF>
<options> can be any of the following.
• -a: Also display file names that begin with “.”
• -F: Append “/” to directory names.
The following data is transferred, depending on whether
<path-name> specifies a directory or file.
• Directory specified: A list of the files in the specified
directory
• File specified: Information about the specified file
• No specification: A list of the files in the current directory
The wildcard characters “*” (any string) and “?” (any
character) may be used in <path-name>.
Input example 1:
LIST-a Clip
Input example 2:
LIST Clip/
*
.MXF
NLST
Sends a list of file names from this unit to the remote
computer, with no other information.
Command syntax: NLST <SP> <options or path-name>
<CRLF>
The following options may be specified when no path-
name is specified.
• -a: Also display file names that begin with “.”.
• -l: Display information other than file name (gives the same
result as the LIST command).
• -F: Append “/” to directory names.
The following data is transferred, depending on whether
<path-name> specifies a directory or file.
• Directory specified: A list of the file names only in the
specified directory
• No specification: A list of the file names only in the current
directory.
The wildcard characters “*” (any string) and “?” (any
character) may be used in <path-name>.
Input example 1:
NLST-l
Input example 2:
NLST Clip/
*
.MXF
RETR
Begins transfer of a copy of a file in the specified path on
this unit to the current directory on the remote computer.
Command syntax: RETR <SP> <path-name> <CRLF>
Input example:
RETR Clip/C0001.MXF
STOR
Begins transfer of a copy of a file in the specified path on
the remote computer to the current directory on this unit.
Command syntax: STOR <SP> <path-name> <CRLF>
Input example:
STOR Edit/E0001E01.SMI
RNFR
RNTO
Renames a file.
Specify the file to be renamed with the RNFR command,
and specify the new name with the RNTO command.
(Always follow a RNFR command with a RNTO
command.)
For details, see “File operation restrictions” (page 76).
Command syntax: RNFR <SP> <path-name (before
change)> <CRLF>
RNTO <SP> <path-name (after change)> <CRLF>
Input example:
RNFR General/info.txt
RNTO General/clip_info.txt
DELE
Deletes the specified file on this unit.
Depending on the directory and file type, deletion may not
be possible.
For details, see “File operation restrictions” (page 76).
Command syntax: DELE <SP> <path-name> <CRLF>
Input example:
DELE Clip/C0099.MXF
STAT
Sends information about properties of the specified file
from this unit to the remote computer.
Command syntax: STAT <SP> <path-name> <CRLF>
The following data is transferred, depending on whether a
file is specified with <path-name>.
• File specified: The properties of the specified file
• No specification: 0
Input example:
STAT Clip/C0001.MXF
SYST
Displays the system name of this unit.
Command syntax: SYST <CRLF>
Note