
10 Sep
2004
10 Sep
'04
2:52 p.m.
Yes, is_accessable() might be useful. But the use cases I can think of are a bit theoretical. Anyone else have an opinion? I think I'd like to hear about so real-life needs (rather than theoretical or hypothetical needs) before deciding.
My real life need is that in Windows there are some files in the root directory that you can't query the attributes for. Haven't checked the exact conditions but is_directory will throw for me when iterating over c:\. My concern is that others might do the same mistake as I did and forget to specificly put try/catch around is_directory when iterating a directory.