Mercurial > hg > octave-lyh
annotate scripts/@ftp/mget.m @ 10793:be55736a0783
Grammarcheck the documentation from m-files.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 18 Jul 2010 20:35:16 -0700 |
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 -*- | |
10793
be55736a0783
Grammarcheck the documentation from m-files.
Rik <octave@nomad.inbox5.com>
parents:
10711
diff
changeset
|
17 ## @deftypefn {Function File} {} mget (@var{f}, @var{file}) |
9880 | 18 ## @deftypefnx {Function File} {} mget (@var{f}, @var{dir}) |
19 ## @deftypefnx {Function File} {} mget (@dots{}, @var{target}) | |
20 ## Downloads a remote file @var{file} or directory @var{dir} to the local | |
10711
fbd7843974fa
Periodic grammar check of documentation files to ensure common format.
Rik <octave@nomad.inbox5.com>
parents:
9880
diff
changeset
|
21 ## directory on the FTP connection @var{f}. @var{f} is an FTP object |
9880 | 22 ## returned by the ftp function. |
23 ## | |
24 ## The arguments @var{file} and @var{dir} can include wildcards and any | |
25 ## files or directories on the remote server that match will be downloaded. | |
26 ## | |
27 ## If a third argument @var{target} is given, then a single file or | |
28 ## directory will be downloaded with the name @var{target} to the local | |
29 ## directory. | |
30 ## @end deftypefn | |
31 | |
32 function mget (obj, file) | |
33 __ftp_mget__ (obj.curlhandle, file); | |
34 endfunction |