MATLAB Function Reference Previous page   Next Page
cd (ftp)

Change current directory on FTP server

Syntax

Description

cd(f) Displays the current directory on the FTP server f, where f was created using ftp.

cd(f,'dirname') Changes the current directory on the FTP server f to dirname, where f was created using ftp. After running cd, the object f remembers the current directory on the FTP server. You can then perform file operations functions relative to f using the methods delete, dir, mget, mkdir, mput, rename, and rmdir.

cd(f,'..') changes the current directory on the FTP server f to the directory above the current one.

Examples

Connect to the MathWorks FTP server.

View the contents.

Change the current directory to pub.

View the contents of pub.

See Also

dir (ftp), ftp


Previous page  cdfread cdfwrite Next page

© 1994-2005 The MathWorks, Inc.