dirEntries: How get "." and ".."?
oddp
oddp at posteo.de
Sun Jan 10 23:55:12 UTC 2021
On 10.01.21 23:15, kdevel via Digitalmars-d-learn wrote:
>> Don't you already know "." as the path you passed to dirEntries?
>
> I don't know the change date, the uid/gid etc.
Not as sexy, but can't you manually construct DirEntries [1] by supplying the paths via std.path
[2]? DirName [3] should give you the current/parent directory, for example.
[1] https://dlang.org/library/std/file/dir_entry.html
[2] https://dlang.org/phobos/std_path.html
[3] https://dlang.org/phobos/std_path.html#.dirName
More information about the Digitalmars-d-learn
mailing list