in reply to Re: Moving files
in thread Moving files

That's awful. What was the design logic behind that? It would be faster to simply use system ("mv ...);

Neil Watson
watson-wilson.ca

Replies are listed 'Best First'.
Re: Re: Re: Moving files
by ctilmes (Vicar) on Mar 22, 2004 at 20:14 UTC
    I think the author intended it to be used for files. He may be open to a suggestion to extend it for directories (or even a patch?).

    It would be faster to simply use system ("mv ...);

    Go ahead... Not as portable, but if you understand the constraints, there is nothing wrong with that at all.

Re: Re: Re: Moving files
by synistar (Pilgrim) on Mar 23, 2004 at 15:33 UTC

    One other point to keep in mind is that using system() can be a security issue. Especially if you are passing user input to the system call.

    This node has a quick explanation of the issue.