Thread overview | |||||
---|---|---|---|---|---|
|
August 06, 2019 [Issue 20109] DirEntries() fails on symbolic links to non-existent file | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20109 shove <shove@163.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |shove@163.com --- Comment #1 from shove <shove@163.com> --- I don't think there is any problem here. It is correct to throw an exception to a non-existent file getSize. When traversing files, folders and symlinks, we should judge them and decide whether to do some operations. import std.file; import std.stdio; string path = "..."; foreach (DirEntry e; dirEntries(path, SpanMode.shallow)) { if (e.isSymlink) { string origin = readLink(e.name); if (origin.exists) writeln(origin, ", size: ", e.size); else writeln(origin, " not exists. "); } } -- |
December 17, 2022 [Issue 20109] DirEntries() fails on symbolic links to non-existent file | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20109 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P4 -- |
December 01 [Issue 20109] DirEntries() fails on symbolic links to non-existent file | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20109 --- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> --- THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10381 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB -- |
Copyright © 1999-2021 by the D Language Foundation