in reply to mkdir usage

As a side note:

your condition will also be true on other files than directories, but mkdir will of course fail with a 'File exists' error.

Cheers Rolf

Replies are listed 'Best First'.
Re^2: mkdir usage
by skyworld_chen (Acolyte) on Dec 21, 2012 at 02:37 UTC

    I got the idea. Thanks for all of your kind replies.