source: prextra/@ftp/rmdir.m @ 153

Last change on this file since 153 was 113, checked in by bduin, 8 years ago
File size: 534 bytes
Line 
1function rmdir(h,dirname)
2%rmdir Remove a directory on an FTP site.
3%    RMDIR(FTP,DIRECTORY) removes a directory on an FTP site.
4
5% Matthew J. Simoneau, 14-Nov-2001
6% Copyright 1984-2012 The MathWorks, Inc.
7
8% Make sure we're still connected.
9connect(h)
10
11status = h.jobject.removeDirectory(dirname);
12if (status == 0)
13    code = h.jobject.getReplyCode;
14    switch code
15        case 550
16            error(message('MATLAB:ftp:DeleteFailed',dirname));
17        otherwise
18            error(message('MATLAB:ftp:FTPError',code))
19    end
20end
Note: See TracBrowser for help on using the repository browser.