setAttributes

fnvoid setAttributes(R)(R name, uint attributes) if (isSomeFiniteCharInputRange!R && !isConvertibleToString!R)

Set the _attributes of the given file.

For example, a programmatic equivalent of Unix's chmod +x name to make a file executable is name.setAttributes(name.getAttributes | octal!700).

Parameters

namethe file _name
attributesthe _attributes to set the file to

Throws

FileException if the given file does not exist.
fnvoid setAttributes(R)(auto ref R name, uint attributes) if (isConvertibleToString!R)

ditto