4D Internet Commands v14

FTP_PrintDir

Home

 
4D Internet Commands v14
FTP_PrintDir

FTP_PrintDir 


 

FTP_PrintDir ( ftp_ID ; directory ) -> Function result 
Parameter Type   Description
ftp_ID  Longint in Reference to a FTP login
directory  Text in Unix directory pathname
Function result  Integer in Error Code

The FTP_PrintDir command returns your current working directory (CWD) in the directory parameter.

The command FTP_GetDirList will also return the current working directory. However, executing the FTP_PrintDir command is faster and needs less parameters.

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

The directory parameter returns the current working directory (CWD).

Example  

This example will return the current working directory in the $Cwd variable.

 $err:=FTP_PrintDir(ftp_ID;$Cwd)

 
PROPERTIES 

Product: 4D Internet Commands
Theme: IC File Transfer
Number: 88889

 
HISTORY 

Created: 4D Internet Commands 6.7

 
SEE ALSO 

FTP_GetDirList

 
TAGS 

Current Working Directory

 
ARTICLE USAGE

4D Internet Commands ( 4D Internet Commands v11.4)
4D Internet Commands ( 4D v13.2)
4D Internet Commands ( 4D Internet Commands v12.1)
4D Internet Commands ( 4D Internet Commands v14 R2)
4D Internet Commands ( 4D Internet Commands v14)
4D Internet Commands ( 4D Internet Commands v14 R3)
4D Internet Commands ( 4D Internet Commands v14 R4)