|
|
|
|
|
FTPCurrentDir (Function) In french: FTPRepEnCours Gets or sets the current directory on an FTP server (File Transfer Protocol). New in SaaSA new syntax for manipulating variables of type ftpConnection is available from WINDEV Suite SaaS 2025 - Update 2.
ConnectionNumber = FTPConnect("192.54.12.8")
ResCurrentDir = FTPCurrentDir(ConnectionNumber)
New in SaaSSyntax
Getting the current directory Hide the details
<Result> = FTPCurrentDir(<FTP connection>)
<Result>: Character string - Absolute name of current directory on the FTP server,
- Empty string ("") if an error occurred. To get more details on the error, use ErrorInfo with the errMessage constant.
<FTP connection>: Integer or ftpConnection variable - Connection identifier, returned by FTPConnect.
New in SaaSName of the ftpConnection variable that corresponds to the FTP connection used. Note: This feature is only available from WINDEV Suite SaaS 2025 - Update 2.
Setting the current directory Hide the details
<Result> = FTPCurrentDir(<FTP connection> , <New current directory>)
<Result>: Boolean - True if the current directory was modified,
- False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<FTP connection>: Integer or ftpConnection variable <New current directory>: Character string Name and full (or relative) path of new current directory. The different path sections are separated by "slashes" ("/"). Remarks Timeout By default, all the FTP functions fail if the FTP server does not respond within 20 seconds. This time can be modified: - when connecting to the FTP server with FTPConnect (<Timeout> parameter).
New in SaaSwhen defining the parameters of the ftpConnection variable ( Timeout property). Note: This feature is only available from WINDEV Suite SaaS 2025 - Update 2.
Rights of users Only a user who has read rights on the FTP server can get information about the files or the directories located on an FTP server. In most cases, the read rights are granted to the "anonymous" users. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|