diff options
author | Nathan Glenn <garfieldnate@gmail.com> | 2013-08-30 17:40:53 -0700 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2013-09-18 16:44:02 +1000 |
commit | ab3dadc3715cb85edc63e8b4f5978a0ee61a9057 (patch) | |
tree | 35e12e9c2bb0025e8e38c82e0fe91fa2dd2d5848 /lib | |
parent | 84fd73723c8e464cd37b145631e8270495d8d0c0 (diff) | |
download | perl-ab3dadc3715cb85edc63e8b4f5978a0ee61a9057.tar.gz |
Added note about directories not being created with File::Copy::copy
Diffstat (limited to 'lib')
-rw-r--r-- | lib/File/Copy.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/File/Copy.pm b/lib/File/Copy.pm index b64f609855..eb821ed9a4 100644 --- a/lib/File/Copy.pm +++ b/lib/File/Copy.pm @@ -461,8 +461,10 @@ argument may be a string, a FileHandle reference or a FileHandle glob. Obviously, if the first argument is a filehandle of some sort, it will be read from, and if it is a file I<name> it will be opened for reading. Likewise, the second argument will be -written to (and created if need be). Trying to copy a file on top -of itself is an error. +written to. If the second argument does not exist but the parent +directory does exist, then it will be created. Trying to copy +a file into a non-existent directory is an error. +Trying to copy a file on top of itself is also an error. If the destination (second argument) already exists and is a directory, and the source (first argument) is not a filehandle, then the source |