Mercurial > octave-nkf
diff scripts/miscellaneous/copyfile.m @ 6152:2eb0723b4fad
[project @ 2006-11-11 19:07:17 by jwe]
author | jwe |
---|---|
date | Sat, 11 Nov 2006 19:07:18 +0000 |
parents | 67b1a61a85ce |
children | 12b676a0b183 |
line wrap: on
line diff
--- a/scripts/miscellaneous/copyfile.m Fri Nov 10 17:34:46 2006 +0000 +++ b/scripts/miscellaneous/copyfile.m Sat Nov 11 19:07:18 2006 +0000 @@ -18,16 +18,17 @@ ## 02110-1301, USA. ## -*- texinfo -*- -## @deftypefn {Function File} {[@var{status}, @var{msg}, @var{msgid}] =} movefile (@var{f1}, @var{f2}) -## Move the file @var{f1} to the new name @var{f2}. The name @var{f1} +## @deftypefn {Function File} {[@var{status}, @var{msg}, @var{msgid}] =} copyfile (@var{f1}, @var{f2}, @var{force}) +## Copy the file @var{f1} to the new name @var{f2}. The name @var{f1} ## may contain globbing patterns. If @var{f1} expands to multiple file -## names, @var{f2} must be a directory. +## names, @var{f2} must be a directory. If @var{force} is given and equals +## the string "f" the copy operation will be forced. ## ## If successful, @var{status} is 1, with @var{msg} and @var{msgid} empty\n\ ## character strings. Otherwise, @var{status} is 0, @var{msg} contains a\n\ ## system-dependent error message, and @var{msgid} contains a unique\n\ ## message identifier.\n\ -## @seealso{glob} +## @seealso{glob, movefile} ## @end deftypefn function [status, msg, msgid] = copyfile (f1, f2, force)