Overview | Methods | This Package | All Packages
Sets the attributes of a file.
Syntax
public static void setAttributes( String path, int attributes )
Parameters
path
The path of the file whose attributes to set.
attributes
The attributes for the file.
Exceptions
WinIOException is thrown if an error occurs.
Remarks
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