std.file.listdir doesn't work on directory NTFS directory mounted by NTFS-3G

miraks s.mankowski at miraks.com
Fri May 18 06:13:06 PDT 2007


I understood why it doesn't work with NTFS-3G.
With NTFS-3G, the attribute isdir of DirEntry is always 0 (FALSE). The methode
isdir() work as expected.
It's why listdir doesn't work, because of based in isdir.

I put in place a workaround but take care if you use DirEntry.isdir.

I replaced e.isdir by isdir(e.name).



More information about the Digitalmars-d mailing list