Unit
ScSFTPUtils
type
TScSFTPFilePermission = (pR_USR, pW_USR, pX_USR, pR_GRP, pW_GRP, pX_GRP, pR_OTH, pW_OTH, pX_OTH, pS_UID, pS_GID, pS_VTX);
TScSFTPFilePermissions = set of TScSFTPFilePermission;
Description
The TScSFTPFilePermission enumeration represents flags specifying file permissions. These permissions correspond to the st_mode field of the stat structure defined by POSIX [IEEE.1003-1.1996].
Value | Meaning |
pR_USR | specifies the owner's read access right for the file. |
pW_USR | specifies the owner's write access right for the file. |
pX_USR | specifies the owner's execute access right for the file. |
pR_GRP | specifies the group read access right for a file. |
pW_GRP | specifies the group write access right for a file. |
pX_GRP | specifies the group execute access right for a file. |
pR_OTH | specifies the read access right for a file for the user who is not its owner and doesn't belong to the same group as the file. |
pW_OTH | specifies the write access right for a file for the user who is not its owner and doesn't belong to the same group as the file. |
pX_OTH | specifies the execute access right for a file for the user who is not its owner and doesn't belong to the same group as the file. |
pS_UID | specifies if the file will be executed with the rights of its owner. |
pS_GID | specifies if the file will be executed with the rights of the group. |
pS_VTX | set this flag on directory in order to allow files renaming and deleting to their owners only. Usage is now obsolete and the sticky bit is ignored on files. |
See Also
TScSFTPFileAttributes.Permissions