On Wed, 20 Jun 2001, Tim Musson wrote:

> BWM> Of course -- take a look at the File::Copy module. It has a move
> BWM> function in it.
>
> Isn't File::Copy for Files? I need to move Directories. For example a
> WinNT directory that has been copied to a network drive for backup.

I believe it works for directories also.  It's basically the equivalent of
the Unix mv or the DOS move command.

> Here is my code for testing File::Copy (both the move and copy).  Am I
> doing something wrong?

What kind of errors are you getting?  The function may not work across
filesystem boundaries, and this may include networked drives (especially
on WinNT -- not sure what it can do).

I think rename may also be usable, but again, it may have the same
limitations regarding filesystem boundaries.

-- Brett


Reply via email to