D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1638 - Restrictive functionality of listdir in file.d
Summary: Restrictive functionality of listdir in file.d
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Windows
: P2 enhancement
Assignee: Andrei Alexandrescu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-04 02:55 UTC by Steve Teale
Modified: 2015-06-09 05:14 UTC (History)
2 users (show)

See Also:


Attachments
diff of proposed change (1.82 KB, patch)
2007-11-04 02:57 UTC, Steve Teale
Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Steve Teale 2007-11-04 02:55:30 UTC
No convenient function is provided to search for files within a single directory - listdir is recursive.

Need listthisdir or similar.

Example of requirement. Administrators often copy interesting log files to a subdirectory of the directory where the log files are generated.  Under these circumstances, a recursive listing makes log file rollover unnecessarily difficult.
Comment 1 Steve Teale 2007-11-04 02:57:33 UTC
Created attachment 199 [details]
diff of proposed change
Comment 2 Andrei Alexandrescu 2010-09-25 17:45:16 UTC
dirEntries() takes care of that.