[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: recursive mkdir("DIR","s") / mylib_mkdir("DIR","s")
From: |
Sepp Käsbauer |
Subject: |
Re: recursive mkdir("DIR","s") / mylib_mkdir("DIR","s") |
Date: |
Sat, 23 Feb 2008 16:27:07 +0100 |
User-agent: |
KMail/1.9.6 (enterprise 20070904.708012) |
Am Samstag, 23. Februar 2008 schrieb Stefan Pofahl:
> Hello,
Hello,
>
> I need a recursive mkdir. At the moment mkdir,
> only supports to create bottom-level directories,
> if the directory above allready exists, that is
> sometimes boring.
> Has someone coded a while structure for recursive
> building a new bottom-level directory inclusive of all
> the necessary directories above?
you want to try something like:
system("mkdir -p a/b/c/d")
it executes mkdir from within a shell with -p like parent
>
> Regards,
>
> Stefan
cu
Sepp