Re: File Module: $target in file:copy()

On 3 December 2013 11:39, Christian Grün wrote:

> I looked at the spec, and I think the overwriting of files is
> mentioned in the spec.  Do you have some short proposal on how to
> make the text more self-explanatory?

  What about changing:

|>   b. if $target is a directory, the source directory with all its
|>      files will be copied into the target directory. If a file
|>      already exists, it will be overwritten.

into:

|>   b. if $target is a directory, the source directory with all its
|>      files will be copied into the target directory.  At each
|>      level, if a file already exists in the target with the same
|>      name as in the source, it is overwritten.  If a directory
|>      already exists in the target with the same name as in the
|>      source, it is not removed, it is recursed in place (if it does
|>      not exist, it is created before recursing).

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/

Received on Wednesday, 4 December 2013 14:37:58 UTC