MATLAB Function Reference Previous page   Next Page
dir (ftp)

List contents of directory on FTP server

Syntax

Description

dir(f,'dirname') lists the files in the specified directory, dirname, on the FTP server f, where f was created using ftp. If dirname is unspecified, dir lists the files in the current directory of f.

d=dir(...) returns the results in an m-by-1 structure with the following fields for each file:

name
Filename
date
Date last modified
bytes
Size of the file
isdir
1 if name is a directory and 0 if not

Examples

Connect to the MathWorks FTP server and view the contents.

Change to the directory pub/pentium.

View the contents of that directory.

Or return the results to the structure m.

View element 17.

See Also

ftp, mkdir (ftp), rmdir (ftp)


Previous page  dir disp Next page

© 1994-2005 The MathWorks, Inc.