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.
In reply to Re^3: Quickest way to get a list of all folders in a directory
by leocharre
in thread Quickest way to get a list of all folders in a directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |