[Issue 1635] DirEntry.isfile() and DirEntry.isdir() broken
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Nov  4 14:26:48 PST 2007
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=1635
------- Comment #2 from aarti at interia.pl  2007-11-04 16:26 -------
After some researching it seems that in this structure (from import
std.c.linux.linux):
struct dirent
    {
        uint d_ino;             // this is int on some linuxes
        off_t d_off;
        ushort d_reclen;
        ubyte d_type;           // this field isn't there on some linuxes
        char[256] d_name;
    }
field d_type is not set by readdir method.
In the same time isdir & isfile free functions works properly.
I have fresh installation of Ubuntu Gutsy 7.10.
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list