Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Moving Directory Trees in Win32

by Anonymous Monk
on Oct 29, 2002 at 14:33 UTC ( #208748=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

As a fairly newbie perl coder looking for enlightenment, how would you move a directory tree between drives safely? Probably a simple question, but I cannot find the answer anywhere

Replies are listed 'Best First'.
Re: Moving Directory Trees in Win32
by Nitrox (Chaplain) on Oct 29, 2002 at 14:41 UTC
    Take a look at Win32::FileOp.

    As a side note I thought I remember seeing a mv option in File::Copy.

    -Nitrox

      You are 100% correct Nitrox, there is indeed a 'mv' option in File::Copy, it's called 'move':
      use File::Copy; move ("somefile", "somewhere") || die "Couldn't move somefile to somew +here - $!\n";
      -- vek --

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://208748]
Approved by moxliukas
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2023-12-09 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (37 votes). Check out past polls.

    Notices?