Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
P is for Practical
 
PerlMonks  

Re^2: File::Find: Problem with renaming folders recursively

by larus (Acolyte)
on Mar 20, 2009 at 15:28 UTC ( #752085=note: print w/ replies, xml ) Need Help??


in reply to Re: File::Find: Problem with renaming folders recursively
in thread File::Find: Problem with renaming folders recursively

I don't want to remove those dirs, I want to rename them.


Comment on Re^2: File::Find: Problem with renaming folders recursively
Re^3: File::Find: Problem with renaming folders recursively
by zentara (Archbishop) on Mar 20, 2009 at 15:31 UTC
    Well then, just take the code, take out the rmdir, and put in a rename. What? Are we supposed to write all your code for you? Just setup a test dir/subdir setup, and try renaming, with finddepth, instead of find. Also Google for "File::Find rename dirs"

    I'm not really a human, but I play one on earth My Petition to the Great Cosmic Conciousness
      oh, not at all. I'm quite surprised that after an hour googling I haven't found any ready solution for this problem. Perl has been one of the "big" programming languages for decades and there is no "quick" solution for this simple (for experienced programmer) problem.
        F*$k, I have 10 or 15 examples in my personal library, for finddepth. They are quite easy to find if you are an experienced "googler".. :-) And if you can't change a line of code from "rmdir" to "rename" , maybe you should HIRE someone who can? This is not a free coding service.

        I just googled " File::Find finddepth " and got useful code from at least 5 threads.


        I'm not really a human, but I play one on earth My Petition to the Great Cosmic Conciousness

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-04-20 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls