www.digitalmars.com         C & C++   DMDScript  

D - linux phobos 0.76 std.file.listdir

reply Ant <Ant_member pathlink.com> writes:
Here is an implementation for
linux phobos 0.76 std.file.listdir

(CONFORMING TO: SVID 3, POSIX, BSD 4.3)

Ant
Nov 22 2003
parent reply Ant <Ant_member pathlink.com> writes:
In article <bpo47k$4vh$1 digitaldaemon.com>, Ant says...
(CONFORMING TO: SVID 3, POSIX, BSD 4.3)

I mean the functions used. Because with declare the struct "dirent" instead of including it expect changes for other systems. (mine is linux 2.5.63) Ant
Nov 22 2003
parent reply "Walter" <walter digitalmars.com> writes:
Thanks! Legal: are you explicitly donating the code to the public domain?
Nov 22 2003
next sibling parent Ant <Ant_member pathlink.com> writes:
In article <bpodma$ib8$1 digitaldaemon.com>, Walter says...
Thanks! Legal: are you explicitly donating the code to the public domain?

Yes. Ant
Nov 22 2003
prev sibling parent Ant <Ant_member pathlink.com> writes:
In article <bpodma$ib8$1 digitaldaemon.com>, Walter says...
Thanks! Legal: are you explicitly donating the code to the public domain?

oops... If you want to use it this version is better: tests if the directory is valid before reading it... "if ( dir !== null )" no other changes. Yes, it is public domain. Ant
Nov 22 2003