in reply to Problem with ActiveState's Win32::File module
s/|NORMAL/&~READONLY/ to your code should be enough. The attributes are simple bit masks so you need to remove the READONLY bit.
Update: This module is just a wrapper around [SG]etFileAttributes which says this about FILE_ATTRIBUTE_NORMAL: "The file or directory has no other attributes set. This attribute is valid only if used alone." Which I found rather funny as any directory is going to have the FILE_ATTRIBUTE_DIRECTORY bit set. The documentation also talks about "the handle" (what handle?). But whatever.
- tye (but my friends call me "Tye")
|
|---|