Talk:Empty directory

From Rosetta Code
Revision as of 10:34, 3 January 2012 by rosettacode>Dkf (Things to watch for)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Things to watch for

If anyone's writing a solution, be aware that not every directory contains ... Root directories don't and they can be empty (except for .). Good solutions will take care of this case (which admittedly is only practically going to happen on Windows; Unix has a single root and that's unlikely to ever be empty in practice given that you're running some code at all). –Donal Fellows 10:34, 3 January 2012 (UTC)