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.