MATLAB Function Reference |
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.
dir(tmw) . Intel_resp.txt NYT_2.txt .. Intel_support.txt NYT_Dec14.uu Andy_Grove.txt Intel_white.ps New_York_Times.txt Associated_Press.txt MathWorks_press.txt Nicely_1.txt CNN.html Mathisen.txt Nicely_2.txt Coe.txt Moler_1.txt Nicely_3.txt Cygnus.txt Moler_2.txt Pratt.txt EE_Times.txt Moler_3.txt README.txt FAQ.txt Moler_4.txt SPSS.txt IBM_study.txt Moler_5.txt Smith.txt Intel_FAX.txt Moler_6.ps p87test.txt Intel_fix.txt Moler_7.txt p87test.zip Intel_replace.txt Myths.txt test
Or return the results to the structure m
.
See Also
dir | disp |
© 1994-2005 The MathWorks, Inc.