java - Where can I find the list of attributes name? -
i wondering if there list of attributes name referred when using following:
however, can set dos attribute using setattribute(path, string, object, linkoption...) method, follows:
path file = ...; files.setattribute(file, "dos:hidden", true);
in case .ishidden()
method referred hidden
, isreadonly()
? have tried dos:readonly
, other combination, without achieving result wanted. dou know link has list of attribute "reference"? in advance.
http://www.kodejava.org/how-do-i-set-the-value-of-file-attributes/
// // set new file attributes. // files.setattribute(file, "dos:archive", false); files.setattribute(file, "dos:hidden", false); files.setattribute(file, "dos:readonly", false); files.setattribute(file, "dos:system", false);
Comments
Post a Comment