How to make a directory?

Alex Rønne Petersen xtzgzorex at gmail.com
Tue May 1 16:47:59 PDT 2012


On 02-05-2012 01:45, Minas wrote:
> What is the D way to create a directory?
>
> I can use the C function system("mkdir ...") but it doesn't seem very
> good to me.

It's not in the most obvious of places: 
http://dlang.org/phobos/std_file.html#mkdir

(But then again, an std.directory module would probably be a bit 
overkill...)

>
> Also, is there a way to require the root password of the user when going
> create the directory in a restricted folder (like /usr) AFTER the
> application has started?

No idea, sorry.

>
> Thank you.

-- 
- Alex


More information about the Digitalmars-d-learn mailing list