include ("import") need_win32api() need_win32con() func doGetAttributes(_data) // TODO println(att + ' = win32api.GetFileAttributes(' + FileName + ')') if (linked(onGetAttributes)) event(onGetAttributes, att) end if (linked(onAttributeArchive)) event(onAttributeArchive, '(' + att + ' & win32con.FILE_ATTRIBUTE_ARCHIVE)') end if (linked(onAttributeCompressed)) event(onAttributeCompressed, '(' + att + ' & win32con.FILE_ATTRIBUTE_COMPRESSED)') end if (linked(onAttributeDevice)) event(onAttributeDevice, '(' + att + ' & win32con.FILE_ATTRIBUTE_DEVICE)') end if (linked(onAttributeDirectory)) event(onAttributeDirectory, '(' + att + ' & win32con.FILE_ATTRIBUTE_DIRECTORY)') end if (linked(onAttributeEncrypted)) event(onAttributeEncrypted, '(' + att + ' & win32con.FILE_ATTRIBUTE_ENCRYPTED)') end if (linked(onAttributeHidden)) event(onAttributeHidden, '(' + att + ' & win32con.FILE_ATTRIBUTE_HIDDEN)') end if (linked(onAttributeNotContentIndexed)) event(onAttributeNotContentIndexed, '(' + att + ' & win32con.FILE_ATTRIBUTE_NOT_CONTENT_INDEXED)') end if (linked(onAttributeOffline)) event(onAttributeOffline, '(' + att + ' & win32con.FILE_ATTRIBUTE_OFFLINE)') end if (linked(onAttributeReadonly)) event(onAttributeReadonly, '(' + att + ' & win32con.FILE_ATTRIBUTE_READONLY)') end if (linked(onAttributeReparsePoint)) event(onAttributeReparsePoint, '(' + att + ' & win32con.FILE_ATTRIBUTE_REPARSE_POINT)') end if (linked(onAttributeSparse)) event(onAttributeSparse, '(' + att + ' & win32con.FILE_ATTRIBUTE_SPARSE)') end if (linked(onAttributeSystem)) event(onAttributeSystem, '(' + att + ' & win32con.FILE_ATTRIBUTE_SYSTEM)') end if (linked(onAttributeTemporary)) event(onAttributeTemporary, '(' + att + ' & win32con.FILE_ATTRIBUTE_TEMPORARY)') end if (linked(onAttributeVirtual)) event(onAttributeVirtual, '(' + att + ' & win32con.FILE_ATTRIBUTE_VIRTUAL)') end end func doSetAttributes(_data) // TODO println("win32api.SetFileAttributes("+FileName+", "+NewAttributes+")") end func Attributes return (att) end