http://d.puremagic.com/issues/show_bug.cgi?id=8680
Summary: SpanMode.breadth incorrect Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: jesse.k.phillip...@gmail.com --- Comment #0 from Jesse Phillips <jesse.k.phillip...@gmail.com> 2012-09-17 11:44:24 PDT --- Using Linux 64bit with a reiserFS the following code does not span in a breadth manner. Testing on Windows 32bit it works as expected with on exception, all directories are not listed before spanning. import std.file; import std.stdio; void main() { mkdir("a"); mkdir("a/b"); mkdir("a/c"); mkdir("a/c/z"); std.file.write("a/1.txt", ""); std.file.write("a/2.txt", ""); std.file.write("a/b/1.txt", ""); std.file.write("a/b/2.txt", ""); std.file.write("a/c/1.txt", ""); std.file.write("a/c/z/1.txt", ""); foreach(string file; dirEntries("a/", SpanMode.breadth)) writeln(file); rmdirRecurse("a"); } // Expected Approximation // a/2.txt // a/1.txt // a/b // a/c // a/c/1.txt // a/c/z // a/c/z/1.txt // a/b/1.txt // a/b/2.txt // // Actual // a/c // a/c/z // a/c/z/1.txt // a/c/1.txt // a/b // a/b/2.txt // a/b/1.txt // a/2.txt // a/1.txt -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------