rmdir (ftp) - Remove directory on FTP server

Syntax

rmdir(f,'dirname')

Description

rmdir(f,'dirname') removes the directory dirname from the current directory of the FTP server f, where f was created using ftp.

Examples

Connect to server testsite, view the contents of testdir, and remove the directory newdir from the directory testdir.

test=ftp('ftp.testsite.com');
cd(test,'testdir');
dir(test)
.              ..       newdir
dir(test,'newdir')
.              ..
rmdir(test,'newdir');
dir(test,'testdir')
.              ..

See Also

cd (ftp), delete (ftp), dir (ftp), ftp, mkdir (ftp)

  


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