in reply to Is this the most elegant way to code directory lookup?

I hate to add anything that might be construed as fuel to the unless discussion, but aren't "." and ".." both directories anyway? (And, for that matter, if they weren't, would you want to skip them?)

If God had meant us to fly, he would *never* have given us the railroads.
    --Michael Flanders