Topic Path: Symbol Reference > Classes > TIdFSP Class > TIdFSP Methods > GetDirInfo Method > GetDirInfo Method (String, TIdFSPDirInfo)
ContentsIndexHome
PreviousUpNext
TIdFSP.GetDirInfo Method (String, TIdFSPDirInfo)

Retrieves directory and file permissions for the specified directory.

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

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