Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20
FTP_ChangeDir
|
FTP_ChangeDir ( ftp_ID ; directory ) -> Funktionsergebnis | ||||||||
Parameter | Typ | Beschreibung | ||||||
ftp_ID | Lange Ganzzahl |
![]() |
Reference to a FTP login | |||||
directory | Text |
![]() |
Unix directory pathname | |||||
Funktionsergebnis | Ganzzahl |
![]() |
Error Code | |||||
The FTP_ChangeDir command changes your current working directory (CWD) to the path given to the directory parameter.
The commands FTP_GetDirList and FTP_GetFileInfo will also change the current working directory. However, executing the FTP_ChangeDir command is faster and needs less parameters.
ftp_ID is the long integer reference to the FTP session established with FTP_Login.
directory is a text value in the format of a HostPath which references an existing FTP directory. An error will be returned if the directory does not exist or if you do not have sufficient access priveleges to perform this action. In this case, the current working directory will be left unchanged.
This statement will set the CWD to the FTP root:
$err:=FTP_ChangeDir(ftp_ID;"/")
Produkt: 4D
Thema: IC File Transfer
Nummer:
88890
Erstellt: 4D Internet Commands 6.7
4D Internet Commands ( 4D v20)