FTPDirectoryEntryAttributes()
Syntax
Attributes = FTPDirectoryEntryAttributes(#Ftp)Description
Returns the attributes of the current entry in the FTP enumeration being listed with the ExamineFTPDirectory() and NextFTPDirectoryEntry() functions.
Parameters
#Ftp The connection to use.
Return value
Returns a combination of the following values:#PB_FTP_ReadUser : Access flags for the owning user #PB_FTP_WriteUser #PB_FTP_ExecuteUser #PB_FTP_ReadGroup : Access flags for the owning user's group #PB_FTP_WriteGroup #PB_FTP_ExecuteGroup #PB_FTP_ReadAll : Access flags for all other users #PB_FTP_WriteAll #PB_FTP_ExecuteAll
Example
To check if one attribute is actually set, just use the '&' (binary AND) and the attribute constant value:[...] FileAttributes = FTPDirectoryEntryAttributes(#Ftp) If FileAttributes & #PB_FTP_ReadUser Debug "This file has the ReadUser flag" EndIf
See Also
ExamineFTPDirectory(), NextFTPDirectoryEntry(), FTPDirectoryEntryType(), FTPDirectoryEntryName(), FTPDirectoryEntryDate(), FTPDirectoryEntrySize(), FTPDirectoryEntryRaw()
Supported OS
All