Internet Direct (Indy)
Home
PreviousUpNext
TIdFSP.GetStatInfo Method

Gets status and statistical information for a file or directory.

Pascal
procedure GetStatInfo(
    const APath: String
);
Parameters 
Description 
APath 
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.

Exceptions 
Description 
Raised with the message RSFSPNotFound when the requested file does not exist on the remote FSP host. 
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.