Topic Path: Symbol Reference > Classes > TIdFSP Class > TIdFSP Methods > GetStatInfo Method
TIdFSP.GetStatInfo Method

Gets status and statistical information for a file or directory.

procedure GetStatInfo(
    const APath: String
File name or directory path on the remote FSP host. 

GetStatInfo is a procedure used to get status and statistical information about the file or directory specified in APath. 

GetStatInfo calls SendCmd using the FSP CC_STAT command, and parses data from the FSP response packet into the StatInfo property for the FSP client. StatInfo will contain information about the type of item requested (file or directory), and optionally the file size and file modification date (in local and UTC timezones). 

GetStatInfo can raise an EIdFSPFileNotFound exception when APath represents a file that does not exist on the remote FSP host. 

Use GetDirInfo and DirInfo to access file and directory permissions on the remote FSP host.

Raised with the message RSFSPNotFound when the requested file does not exist on the remote FSP host. 
Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.