Mercurial > octave-nkf
annotate scripts/@ftp/dir.m @ 11104:2c356a35d7f5
fix copyright notices
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 17 Oct 2010 23:43:42 -0400 |
parents | fbd7843974fa |
children | c776f063fefe |
rev | line source |
---|---|
9880 | 1 ## Copyright (C) 2009 David Bateman |
2 ## | |
11104 | 3 ## This file is part of Octave. |
9880 | 4 ## |
11104 | 5 ## Octave is free software; you can redistribute it and/or modify it |
6 ## under the terms of the GNU General Public License as published by | |
7 ## the Free Software Foundation; either version 3 of the License, or (at | |
8 ## your option) any later version. | |
9 ## | |
10 ## Octave is distributed in the hope that it will be useful, but | |
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 ## General Public License for more details. | |
9880 | 14 ## |
15 ## You should have received a copy of the GNU General Public License | |
11104 | 16 ## along with Octave; see the file COPYING. If not, see |
17 ## <http://www.gnu.org/licenses/>. | |
9880 | 18 |
19 ## -*- texinfo -*- | |
20 ## @deftypefn {Function File} {@var{lst} =} dir (@var{path}) | |
21 ## 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
|
22 ## @var{f}. @var{f} is an FTP object returned by the ftp function. |
9880 | 23 ## @end deftypefn |
24 | |
25 function lst = dir (obj) | |
26 if (nargout == 0) | |
27 __ftp_dir__ (obj.curlhandle); | |
28 else | |
29 lst = __ftp_dir__ (obj.curlhandle); | |
30 endif | |
31 endfunction |