Internet Direct (Indy)
Home
PreviousUpNext
TIdFSP.GetDirInfo Method (String, TIdFSPDirInfo)

Retrieves directory and file permissions for the specified directory.

Pascal
procedure GetDirInfo(
    const ADIR: String; 
    ADirInfo: TIdFSPDirInfo
); overload;
Parameters 
Description 
ADIR 
Directory name of the remote FSP host.
 
ADirInfo 
Storage for the directory permission flags. 

GetDirInfo is an overloaded method used to access and store directory and file permissions on the remote FSP host for the directory name specified in ADir. 

ADirInfo is the TIdFSPDirInfo instance to use for storing the permission flags retrieve in the FSP protocol exchange. 

GetDirInfo calls SendCmd using the FSP CC_GET_PRO command, and parses the contents of the FSP response packet to capture the values for the TIdFSPDirInfo instance. 

Please note that, at the current time, the FSP client does not implement setting directory permission flags for directories owned by the client.

GetDirInfo 

TIdFSPDirInfo 

SendCmd

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.