Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^6: question regarding File::Copy, and hashes that contain file paths

by Leetsauce (Novice)
on Dec 18, 2015 at 14:32 UTC ( [id://1150693]=note: print w/replies, xml ) Need Help??


in reply to Re^5: question regarding File::Copy, and hashes that contain file paths
in thread question regarding File::Copy, and hashes that contain file paths

This is exactly what I needed. I ended up using:
my $base_path = 'e:/iwantfileshere'; dirmove($from,$to) if -e $base_path;
Thank you for your help!
  • Comment on Re^6: question regarding File::Copy, and hashes that contain file paths
  • Download Code

Replies are listed 'Best First'.
Re^7: question regarding File::Copy, and hashes that contain file paths
by Your Mother (Archbishop) on Dec 18, 2015 at 15:13 UTC

    I think you should use closer to the version I showed :P with -f and -d and maybe mix in -r but the functions should report that kind of problem if it arises. -e might mean a directory exists but it also could be a file or a link and probably more.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-19 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found