DirectoryEntryAttributes()

Syntax

Attributes = DirectoryEntryAttributes()
Description
Returns the attributes of the current entry in the directory being listed with ExamineDirectory() and NextDirectoryEntry() commands. The Attributes are a combinations of the following values:

#PB_FileSystem_Hidden: File is hidden
#PB_FileSystem_Archive: File has been archived and not changed since the last time
#PB_FileSystem_Compressed: File is compressed
#PB_FileSystem_Normal: Normal attributes
#PB_FileSystem_ReadOnly: File is in readonly mode
#PB_FileSystem_System: File is a system file

To check if one attribute is actually set, just use the '&' (logical AND) and the attribute constant value:
  [...]
  
  FileAttributes = DirectoryEntryAttributes()
  If FileAttributes & #PB_FileSystem_Hidden
    Debug "This file is hidden !"
  EndIf

Supported OS

All

<- DeleteFile() - FileSystem Index - DirectoryEntryName() ->