Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Replication of directory subtrees

by rbi (Monk)
on Apr 24, 2003 at 15:05 UTC ( #252921=note: print w/ replies, xml ) Need Help??


in reply to Re: Replication of directory subtrees
in thread Replication of directory subtrees

Yes, It is going to be subroutine within a CGI application that should run both under MsWin32 and Unix.
Thanks.


Comment on Re: Re: Replication of directory subtrees
Replies are listed 'Best First'.
Re: Re: Re: Replication of directory subtrees
by eduardo (Curate) on Apr 24, 2003 at 15:17 UTC
    well, in that case!
    if ($^O =~ /win32/i) { # do stuff with xcopy } else { # do stuff with cp -r }
    I am *not* advocating this solution... I just thought it would be cheesy way to do it. Please, for the love of anything you may or may not hold holy, use something like File::Find or File::NCopy instead like merlyn suggested.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (21)
As of 2015-07-31 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls