FTP_GetFileInfo

4D - Documentation   Français   English   German   4D Internet Commands, Theme List   4D Internet Commands, Alphabetical List   Back   Previous   Next

version 6.5


FTP_GetFileInfo (ftp_ID; hostPath; size; modDate) Integer

ParameterTypeDescription
ftp_IDLongintReference to a FTP login
hostPathTextPathname to document
sizeLongintSize of document
modDateDateModification Date
Function resultIntegerError Code

Description

Given a pathname to a file in the format of a HostPath, the command FTP_GetFileInfo returns the size and last modification date of the file.

ftp_ID is the long integer reference to the FTP session established with FTP_Login.

hostPath is the text path to the document to return information about.

Note: The FTP_GetFileInfo command may modify the Current Working Directory (CWD) if hostPath is a full pathname which indicates a directory different from the CWD. In this case, the CWD becomes the directory defined by the hostPath parameter.

size is a long integer variable or field to hold the size of the file identified by hostPath.

modDate is a date variable or field to hold the last modification date of the file.

See Also

FTP_GetDirList.


4D - Documentation   Français   English   German   4D Internet Commands, Theme List   4D Internet Commands, Alphabetical List   Back   Previous   Next