The mdir command returns information on files on the remote host. Details on remote files can also be obtained by using the dir, ls and mls commands.
mdir |
[<remote-file>] [<remote-file>] [<remote-file>] ... - | <local-file> |
<remote-file>
Name of a file on the remote host. Multiple file names may be specified in a single call.
<local-file>
Name of the local file to which the output from the command is to be written.
-
The information is to be displayed on the screen.
If no operands are specified, they are requested interactively.
If the connection to the partner was set up via an FTAC profile, the file information is only output relatively to the path name set in this profile.
Example
The remote host is a Unix host.
Query the names of local and remote working directories.
lpwd Local directory is :5:$TCPTEST.MAN. pwd 257 "/usr/tcptest/man/sam/nach.bs2000" is current directory.
Output information on the remote files berta.* and anton.* to the local file SEVERAL.PROT. The FTP server function PORT is called implicitly.
mdir berta.* anton.* several.prot 200 PORT command okay. 150 ASCII data connection for berta.* (89.16.100.0,1187). 226 Transfer complete. 100 bytes received in 0.71 seconds (1.36E-01 Kbytes/s) 200 PORT command okay. 150 ASCII data connection for anton.* (89.16.100.0,1188). 226 Transfer complete. 150 bytes received in 1.64 seconds (8.90E-02 Kbytes/s)