Bug 8465 – std.file cannot set file attributes

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-07-29T14:31:00Z
Last change time
2017-01-16T15:46:48Z
Keywords
bootcamp
Assigned to
nobody
Creator
chadjoan

Comments

Comment #0 by chadjoan — 2012-07-29T14:31:30Z
The std.file module in phobos has a getAttributes function to get file attributes, but not corresponding function to set them. The enhancement request then, is to add a setAttributes function that offers a cross-platform way of setting file attributes. At the very least, this should make it possible to read attributes from one file and make another file have those attributes, and to do it all without low-level OS calls.
Comment #1 by uaaabbjjkl — 2017-01-16T11:58:12Z
It's been implemented some time ago: http://dlang.org/phobos/std_file.html#.setAttributes.
Comment #2 by andrei — 2017-01-16T15:46:48Z
@Jakub thx!