On the unix command prompt, we can create multiple nested directories using the "mkdir -p" command.
i.e. if I want to create a directory ABC, then a directory 123 under ABC, then a directory xyz under 123, I can accomplish this using one single command using
mkdir -p ABC/123/xyz
I want to accomplish the same in C code. The mkdir C function doesnot allow me to create nested directories.
Is there a way to accomplish this??
I donot want to use the system ("mkdir -p ABC/123/xyz" command..
Any other methods???
i.e. if I want to create a directory ABC, then a directory 123 under ABC, then a directory xyz under 123, I can accomplish this using one single command using
mkdir -p ABC/123/xyz
I want to accomplish the same in C code. The mkdir C function doesnot allow me to create nested directories.
Is there a way to accomplish this??
I donot want to use the system ("mkdir -p ABC/123/xyz" command..
Any other methods???