ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / FTP functions
  • Timeout
  • Rights of users
  • Required permissions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
FTPCurrentDir (Function)
In french: FTPRepEnCours
Identifies or modifies the current directory on an FTP server (File Transfer Protocol).
// Identify the current directory on the FTP server
ResCurrentDir = FTPCurrentDir(7)
Syntax

Finding out the current directory Hide the details

<Result> = FTPCurrentDir(<Connection identifier>)
<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.
<Connection identifier>: Integer
Connection identifier, returned by FTPConnect.
PHP This parameter is a Variant parameter.

Modifying the current directory Hide the details

<Result> = FTPCurrentDir(<Connection identifier> , <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.
<Connection identifier>: Integer
Connection identifier, returned by FTPConnect.
<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 timeout can be modified with FTPConnect when connecting to the FTP server.

Rights of users

Only a user who has write rights on the FTP server can handle the files or the directories found on an FTP server. In most cases, no write rights are granted to the "anonymous" users.
AndroidAndroid Widget

Required permissions

The call to this function modifies the permissions required by the application.
Required permission : INTERNET
This permission allows the applications to open the network sockets.
Component: wd290com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help