Topic Path: Symbol Reference > Functions > ChmodNoToPerms Function (Integer, String, String, String)
ContentsIndexHome
PreviousUpNext
ChmodNoToPerms Function

Converts a UNIX chmod value to strings that represent user, group, and Owner permissions.

File
procedure ChmodNoToPerms(
    const AChmodNo: Integer; 
    var VUser: String; 
    var VGroup: String; 
    var VOther: String
); overload;
Parameters 
Description 
AChmodNo 
UNIX chmod value to convert.
 
VUser 
User permissions for the chmod value.
 
VGroup 
Group permissions for the chmod value.
 
VOther 
Owner permissions for the chmod value. 

ChmodNoToPerms is an overloaded procedure used to convert the UNIX chmod value in AChmodNo to strings that represent the corresponding user, group, and Owner permissions for the value. 

ChmodNoToPerms calls the overloaded method to convert the bits in AChmodNo to its' representation as a String. The string representation of the chmod bits are copied in to the VUser, VGroup, and VOther arguments. 

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.

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.