std.file new functions/classes

jicman jicman_member at pathlink.com
Thu Mar 9 23:56:36 PST 2006


Has anyone figured out how to use the DirEntry entries for std.file?

jicman says...
>
>
>Walter, first of all, thanks for all the great work you've been doing!  You're
>change my life. ;-)  Again, thanks.
>
>Ok, for the rest of the folks, out there...
>
>So, I love the new std.file, but I don't know how to get the "struct DirEntry"
>to work.  Here is the help in Phobos:
>
>|struct DirEntry;
>|    Directory Entry
>|
>|    char[] name;
>|        file or directory name
>|
>|    ulong size;
>|        size of file in bytes
>|
>|    long creationTime;
>|        time of file creation
>|
>|    long lastAccessTime;
>|        time file was last accessed
>|
>|    long lastWriteTime;
>|        time file was last written to
>|
>|    int isdir();
>|        Return !=0 if DirEntry is a directory.
>|
>|    int isfile();
>|        Return !=0 if DirEntry is a file. 
>
>How do I use it against a file?  (say, c:\temp\file.txt)
>
>thanks.
>
>josé
>
>





More information about the Digitalmars-d-learn mailing list