Skip to content
  • rswindell's avatar
    Fix long-standing issue with File.attributes on Windows: the value *read* · 16e4d35d
    rswindell authored
    was based on _finddata_t.attrib value while the value *written* was based on
    struct stat.st_mode, and totally incompatible.
    Just use the stat/chmod compatible value for both read and write (for all
    OSes). If you need the old Windows-centric attribute values (e.g. to determine
    "hidden" or "archive" attributes), use file_attrib() instead.
    16e4d35d