Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by larus (Acolyte)
on Mar 20, 2009 at 15:28 UTC ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://752085]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found