|
Getting Windows File Attributes
Read the article this discussion is about
-
DigiAvitar
-
pyuson
This archived discussion is "read only".
For the corresponding "live" discussions, post in the active topic forum here.
»
DigiAvitar
- Perl Win32::File
What does a return code of "-1" mean? After issuing the following command all test are TRUE: Win32::File::GetAttributes($filename, $attr); if ($attr & DIRECTORY) { print "$filename Directory\n" } if ($attr & NORMAL) { print "$filename Normal\n" } if ($attr & HIDDEN) { print "$filename Hidden\n" } if ($attr & READONLY) { print "$filename Read Only\n" } if ($attr & COMPRESSED) { print "$filename Compressed\n" }
»
pyuson
- Re: Perl Win32::File
In response to message posted by DigiAvitar: A response of -1 means that the file does not exist
Please follow the guidelines set forth in the
Suite101 Posting Etiquette
when adding to the discussion.
|