DONE!!!

=======================================
$ cat try.d
import std.stdio;
import std.string;
import cygwin.std.file;
import cygwin.loader;

void main()
{
        CygwinInit();

        foreach (string name; dirEntries("/", SpanMode.shallow))
        {
                writefln(name);
        }
}
=======================================

$ ./try.exe
/bin
/Cygwin-Terminal.ico
/Cygwin.bat
/Cygwin.ico
/dev
/etc
/home
/lib
/sbin
/tmp
/usr
/var
/proc
/cygdrive


The sources of "cygwin" package for D will be available as part of my unDE project soon.

Reply via email to