>>Safer? What exactly would that mean in this case? it's easy enough to put a Try/Catch around it should there be errors ... what else would one be protecting against?
>
>The case when there may already be a file, potentially with nasty attributes (hidden, protected, system), name of which may collide with the attempted directory name.
>
>Just try
>
c="some.tmp"
>strtofile("whatever", c)
>md (c)
>Not tested, but I guess you wouldn't get an error, yet your directory wouldn't be created.
It gives an error.
If it's not broken, fix it until it is.
My Blog