1. RE: first practical question: easy way to do a recursive dir copy
Hi Peter,
I'd say that the easiest way is to use system/system_exec and let the OS
take care of it. For DOS/Windows, for example, you could use:
"xcopy source destination /se"
-- Brian
Peter Willems wrote:
>
>
> Hi there,
>
> Is there a simple way to do a recursive directory copy
> in Eu. Like entering a certain directory and copying all
> files and lower subdirs from that directory to a destination
> while retaining the directory structure.
>
> I looked around for something usefull in the archive but
> could not find anything.
>
> Any pointers ?
>
> Hans Peter Willems
>
2. RE: first practical question: easy way to do a recursive dir copy
Hey guys, thanks for the replies.
jbrown105 at speedymail.org wrote:
> Strange. Juergen, isn't our cross platform file library in the archives?
I looked around the archive but could not find it.
> Anyways, Juergen and I wrote this file library that provides several
> file
> manipulation routines, including copy, move, rename, and delete. One of
> the
> functions in that library did exactly what you are asking for (iirc it
> was
> called xcopy). I think it was called file2.e
Well, as I said above, I could not find your library, but it
did point me in another direction. I found the function
"walk_dir" in the default includes (file.e) and it seems that
it will help me do anything I want (in addition to the copy I
also need to generate a tree-document that describes the content
of the copied dir-tree).
So thanks again
Hans Peter Willems