Mercurial > hg > octave-lyh
annotate scripts/@ftp/mput.m @ 11100:cdf940db26a0
provide mxIsFunctionHandle MEX interface function
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 16 Oct 2010 13:27:18 -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} {} mput (@var{f}, @var{file}) | |
18 ## Upload the local file @var{file} into the current remote directory on | |
10711
fbd7843974fa
Periodic grammar check of documentation files to ensure common format.
Rik <octave@nomad.inbox5.com>
parents:
9880
diff
changeset
|
19 ## the FTP connection @var{f}. @var{f} is an FTP object returned by the |
9880 | 20 ## ftp function. |
21 ## | |
22 ## The argument @var{file} is passed by the @dfn{glob} function and any | |
23 ## files that match the wildcards in @var{file} will be uploaded. | |
24 ## @end deftypefn | |
25 | |
26 function retval = mput (obj, file) | |
27 if (nargout == 0) | |
28 __ftp_mput__ (obj.curlhandle, file); | |
29 else | |
30 retval = __ftp_mput__ (obj.curlhandle, file); | |
31 endif | |
32 endfunction |