in reply to Re^2: Quickest way to get a list of all folders in a directory
in thread Quickest way to get a list of all folders in a directory
Yes- I was thinking here about the person reading the code more than the code- it would make it extra special with sugar on top obvious about what the problem is or is not.. And.. if the OP is not even checking that the entries are files or dirs or what- then seeing a line that tells -d or x.. might be needed? For the human, that is.
But you're right, very good point, opendir() already checks that it's a dir.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Quickest way to get a list of all folders in a directory
by ikegami (Patriarch) on Aug 13, 2009 at 15:13 UTC | |
by leocharre (Priest) on Aug 13, 2009 at 16:35 UTC |