source: prextra/@ftp/disp.m @ 113

Last change on this file since 113 was 113, checked in by bduin, 8 years ago
File size: 529 bytes
Line 
1function disp(h)
2% DISP Display method for the FTP object.
3
4% Matthew J. Simoneau, 14-Nov-2001
5% Copyright 1984-2012 The MathWorks, Inc.
6
7if length(h) ~= 1
8    % FTP array; Should work for empty case as well.
9    s = size(h);
10    str = sprintf('%dx',s);
11    str(end) = [];
12    disp(getString(message('MATLAB:ftp:ArrayOfFtp',str)));
13else
14    disp(sprintf( ...
15        '  FTP Object\n     host: %s\n     user: %s\n      dir: %s\n     mode: %s', ...
16        h.host,h.username,char(h.remotePwd.toString),char(h.type.toString)));
17end
Note: See TracBrowser for help on using the repository browser.