Internet Direct (Indy)
Home
PreviousUpNext
ChmodNoToPerms Function

Converts a UNIX chmod value to a string that represents user, group, and Owner permissions.

Pascal
procedure ChmodNoToPerms(
    const AChmodNo: Integer; 
    var VPermissions: String
); overload;
Parameters 
Description 
AChmodNo 
UNIX chmod value to convert.
 
VPermissions 
Permissions represented by bits in the chmod value. 

ChmodNoToPerms is an overloaded procedure used to convert the UNIX chmod value in AChmodNo to a string that represents user, group, and Owner permissions for the value. 

ChmodNoToPerms converts the bits in AChmodNo to its' representation as a String. Bytes positions in VPermissions represent the following permissions: 

 

Positions 
Usage 
1-3 
User permissions 
4-6 
Group permissions 
7-9 
Owner permissions 

 

Use PermsToChmodNo to convert the string representation of the bits back into a UNIX chmod value. 

ChmodNoToPerms is used in parsers for structured directory listings in TIdFTP that support the capability.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.