Bug 1638 – Restrictive functionality of listdir in file.d

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-11-04T02:55:00Z
Last change time
2015-06-09T05:14:59Z
Assigned to
andrei
Creator
steve.teale

Attachments

IDFilenameSummaryContent-TypeSize
199file.diffdiff of proposed changetext/plain1867

Comments

Comment #0 by steve.teale — 2007-11-04T02:55:30Z
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 by steve.teale — 2007-11-04T02:57:33Z
Created attachment 199 diff of proposed change
Comment #2 by andrei — 2010-09-25T17:45:16Z
dirEntries() takes care of that.