in reply to Re: Reading Files Across Directories and Sub Directories
in thread Reading Files Across Directories and Sub Directories

Probably better to explicitly ignore "." and ".." than to blithely do two dummy reads; I'm not aware of anything that mandates that those are the first results returned by a readdir (then again I don't know of any offhand where it isn't either, just it seems more portable to ignore them on the off chance and increase your portability (on the third hand, it's entirely possible that said system would have not-cwd-or-parent entries which are named "." and ".." that you might not want to ignore . . . :)).
</nitpick>

The cake is a lie.
The cake is a lie.
The cake is a lie.

  • Comment on Re^2: Reading Files Across Directories and Sub Directories

Replies are listed 'Best First'.
Re^3: Reading Files Across Directories and Sub Directories
by ikegami (Patriarch) on Dec 03, 2008 at 07:38 UTC
    Root directories don't have "." and ".." in Windows, for example