Mercurial > hg > octave-nkf
annotate scripts/@ftp/dir.m @ 10845:c0ffe159ba1a
version is now 3.3.52+
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 01 Aug 2010 14:50:51 -0400 |
parents | fbd7843974fa |
children | 2c356a35d7f5 |
rev | line source |
---|---|
9880 | 1 ## Copyright (C) 2009 David Bateman |
2 ## | |
3 ## This program is free software; you can redistribute it and/or modify | |
4 ## it under the terms of the GNU General Public License as published by | |
5 ## the Free Software Foundation; either version 2 of the License, or | |
6 ## (at your option) any later version. | |
7 ## | |
8 ## This program is distributed in the hope that it will be useful, | |
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 ## GNU General Public License for more details. | |
12 ## | |
13 ## You should have received a copy of the GNU General Public License | |
14 ## along with this program; If not, see <http://www.gnu.org/licenses/>. | |
15 | |
16 ## -*- texinfo -*- | |
17 ## @deftypefn {Function File} {@var{lst} =} dir (@var{path}) | |
18 ## List the current directory in verbose form for the FTP connection | |
10711
fbd7843974fa
Periodic grammar check of documentation files to ensure common format.
Rik <octave@nomad.inbox5.com>
parents:
9880
diff
changeset
|
19 ## @var{f}. @var{f} is an FTP object returned by the ftp function. |
9880 | 20 ## @end deftypefn |
21 | |
22 function lst = dir (obj) | |
23 if (nargout == 0) | |
24 __ftp_dir__ (obj.curlhandle); | |
25 else | |
26 lst = __ftp_dir__ (obj.curlhandle); | |
27 endif | |
28 endfunction |