Bug 889 – listdir loops forever

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-01-26T02:51:00Z
Last change time
2015-06-09T01:31:22Z
Assigned to
dvdfrdmn
Creator
digitalmars-com

Comments

Comment #0 by digitalmars-com — 2007-01-26T02:51:00Z
This example is from http://www.digitalmars.com/d/phobos/std_file.html under docs for "void listdir(char[] pathname, bool delegate(DirEntry * de) callback);" import std.stdio; import std.file; void main(char[][] args) { bool callback(DirEntry* de) { if (de.isdir) listdir(de.name, &callback); else writefln(de.name); return true; } listdir(args[1], &callback); }
Comment #1 by dvdfrdmn — 2007-01-27T18:25:37Z
Fixed in svn r75. Targeted for release 0.22.