ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / FTP functions
  • Disconnection timeout
  • 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
FTPDisconnect (Function)
In french: FTPDéconnecte
Closes the connection between the current computer and the FTP server (File Transfer Protocol). This connection was established by FTPConnect.
Example
WINDEVWEBDEV - Server codeReports and QueriesAndroidAndroid Widget iPhone/iPadIOS WidgetMac CatalystJavaUser code (UMC)Ajax
// Connection to an FTP server
nConnection is int
nConnection = FTPConnect("192.108.10.2")
...
// Disconnection
FTPDisconnect(nConnection)
Syntax
<Result> = FTPDisconnect(<Connection ID>)
<Result>: Boolean
  • True if the disconnection was performed,
  • False if an error occurred. ErrorInfo returns more details.
<Connection ID>: Integer
Connection identifier, returned by FTPConnect.
PHP This parameter is a Variant parameter.
Remarks

Disconnection 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.
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.
Related Examples:
The FTP functions Unit examples (WEBDEV): The FTP functions
[ + ] This example presents the main FTP functions of WEBDEV and it allows you to:
- Connect to an FTP server
- List the files and directories found on the FTP server
- Retrieve the files found on the FTP server
- Disconnect from an FTP server
Component: wd290com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Video FtpDisconect
https://youtu.be/p1pXWdC5rgs
amarildo
26 Oct. 2018

Last update: 06/22/2023

Send a report | Local help