DirectoryEntryAttributes()
Syntax
Attributes = DirectoryEntryAttributes(#Directory)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 fileTo check if one attribute is actually set, just use the '&' (binary AND) and the attribute constant value:[...] FileAttributes = DirectoryEntryAttributes(#Directory) If FileAttributes & #PB_FileSystem_Hidden Debug "This file is hidden !" EndIf
Supported OS
All