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

>   What does it mean, "overwritten", for a directory?  Is it going to
> be completely deleted first?

No.

> Are are all files from the source copied
> (recursively) to the target, each overriding any corresponding target
> if they exist?

Yes.

>   The trailing slash convention would give the user this ability, just
> by using a different name.  E.g. both following expressions would be
> equivalent (both would throw an error if 'target' already exist and is
> a file):

>       if ( file:is-dir('target') ) then

In this case, I may have got you wrong: how can this expression yield
true at all if "target" does not end with a slash?

Christian

Received on Monday, 2 December 2013 18:52:05 UTC