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.
Wrong conclusion.
Alexander
In reply to Re^2: true from (-e "") on Windoze (" is an illegal filename character
by afoken
in thread true from (-e "") on Windoze
by CarolinaPerler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |