Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2014-09-18 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (124 votes), past polls