Rev | Line | |
---|
[113] | 1 | function 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. |
---|
| 9 | connect(h) |
---|
| 10 | |
---|
| 11 | status = h.jobject.removeDirectory(dirname); |
---|
| 12 | if (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 |
---|
| 20 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.