On 10/1/2010 10:34 PM, Galen Seitz wrote:
> logical american wrote:
>> Ironically mkdir -p does create a full path directory with multiple
>> slashes, I am using it right now in a shell script program.  But
>> apparently mkdir() won't
> As Daniel says, mkdir(2) only creates a single directory at a time.
> mkdir(2) is little more than a wrapper around the mkdir system call.
> To see what a command like mkdir -p does, try something like this:
>
> strace mkdir -p /tmp/a/b/c
>
>
My solution will be to parse the directory path and split it into each 
directory and make them one at a time.  Just a little more code to add, 
but now I know what's going on.

_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to