Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: removing directories with wildcard glob in OS-portable way

by Anonymous Monk
on Dec 30, 2012 at 14:32 UTC ( #1010928=note: print w/replies, xml ) Need Help??


in reply to removing directories with wildcard glob in OS-portable way

It is sometimes better, more-consistent among different OSes, to write code (it can also be a one-liner ...) to iterate through the tree pushing directory-names onto an array, then in step 2 iterate through the accumulated array. Some systems e.g. early Windows have been known to "skip" names in their directory walker when targets disappear, so that at the end of the day not everything's gone. Problem being of course that the list might build up many names that when encountered no longer exist.
  • Comment on Re: removing directories with wildcard glob in OS-portable way

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010928]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2017-12-16 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (450 votes). Check out past polls.

    Notices?