Sets the attributes of a file.
public static void setAttributes( String path, int attributes )
path
The path of the file whose attributes to set.
attributes
The attributes for the file.
WinIOException is thrown if an error occurs.
The path parameter must refer to an existing file. The attributes parameter must be a combination of the ARCHIVE, HIDDEN, OFFLINE, READONLY, SYSTEM, and TEMPORARY attribute flags defined in the FileAttribute class.
See Also getAttributes