mkdir; remove; under Windows throw Exception

unDEFER via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Dec 9 17:19:45 PST 2016


Hello!

$ cat try.d
import std.file;

void main ()
{
         mkdir("D:\\TEST");
         remove("D:\\TEST");
}

$ ./try.exe

std.file.FileException at std\file.d(731): D:\TEST: Access Denied.
----------------
....


What I don't know about removing directories in Windows?
Why I can't remove directory which just time created?


More information about the Digitalmars-d-learn mailing list