|Think about Loose Coupling|
Re^2: true from (-e "") on Windoze (" is an illegal filename characterby afoken (Abbot)
|on Jul 02, 2012 at 20:09 UTC||Need Help??|
And when you search for the empty string, dir "", you get everything.
dir is not stat().
The quote " character is illegal in Windows filenames. Therefore, what you are passing to the OS is taken as the empty string.
No. If it would, stat() in the C example would return 0 (success), not -1 (error).
You are effectively asking, is there anything in the current directory. Which will always be true.
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)