Converts a UNIX chmod value to strings that represent user, group, and Owner permissions.
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.
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. |