On unix, the same test on a directory name will indicate you can create a file in the directory. You need write permission on the directory inode to insert a new file's metadata. You may want to test -d where -e is tested above, just to verify it's a directory.
I don't know whether the win32 file tests emulate that or not.
After Compline,
Zaxo
In reply to Re^2: Passing file check operators to a function
by Zaxo
in thread Passing file check operators to a function
by smartnezz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |