mkdir (ftp) - Create new directory on FTP server

Syntax

mkdir(f,'dirname')

Description

mkdir(f,'dirname') creates the directory dirname in the current directory of the FTP server f, where f was created using ftp, and where dirname is a path name relative to the current directory on f.

Examples

Connect to server testsite, view the contents, and create the directory newdir in the directory testdir.

test=ftp('ftp.testsite.com')
dir(test)
.              ..       otherfile.m          testdir
mkdir(test,'testdir/newdir');
dir(test,'testdir)
.              ..       newdir

See Also

dir (ftp), ftp, rmdir (ftp)

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS