use Win32::File qw/GetAttributes SetAttributes/;
The constant values for the attributes are exported by default.
GetAttributes |
GetAttributes (filename, \$atts)
Returns the attribute settings for file filename and saves them as the variable referenced by $atts, which will contain an ORed combination of one or more of the following values:
ARCHIVE DIRECTORY HIDDEN NORMAL READONLY SYSTEM
SetAttributes |
SetAttributes (filename, atts)
Sets the attributes for the file filename to the values contained in atts. The attributes are given as an ORed combination of one or more of the attribute values shown above.
Copyright © 2002 O'Reilly & Associates. All rights reserved.