[Issue 10529] New: rmdirRecurse should have an optional force parameter for read-only file removal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 3 09:22:37 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10529
Summary: rmdirRecurse should have an optional force parameter
for read-only file removal
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-07-03 09:22:37 PDT ---
On win32 rmdirRecurse will fail if a file in the directory has the read-only
attribute set. The win32 API says such a file needs to have its read-only
attribute removed, however Phobos lacks a 'setFileAttributes' function.
I propose we add an optional 'force' enum or boolean to rmdirRecurse, which
will force removal of read-only files by removing the read-only attribute.
This probably means other related functions like 'remove' will need to have
this optional parameter.
Additionally we should provide a setAttributes function
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list