ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / FTP functions
  • Request to FTP server
  • Timeout
  • Rights of users
  • Required permissions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the name of the last file accessed by an FTP function.
Note: FTPName is particularly useful when browsing files on an FTP server with FTPListFile.
New in SaaS
A new syntax for manipulating variables of type ftpConnection is available from WINDEV Suite SaaS 2025 - Update 2.
Example
// Name of last file accessed by an FTP function
ResName = FTPName()
New in SaaS
// Syntax not available in PHP
// Connect the current computer to the FTP server
MyFTPConnection is ftpConnection
MyFTPConnection.Server = "192.54.12.8"
FTPConnect(MyFTPConnection)

// Name of last file accessed by an FTP function
ResName = FTPName(MyFTPConnection)
Syntax
New in SaaS
PHP Syntax not available in PHP

Getting the name of the last file accessed (connection via an ftpConnection variable) Hide the details

<Result> = FTPName(<FTP connection>)
<Result>: Character string
  • Name of last file accessed by an FTP function. The file must have been modified by one of the following FTP functions: FTPAttribute, FTPDate, FTPTime, FTPSize, FTPListFile.
  • Empty string ("") if an error occurred. To get more details on the error, use ErrorInfo with the errMessage constant.
<FTP connection>: ftpConnection variable
Name of the ftpConnection variable that describes the characteristics of the connection to the FTP server.
Note: This variable type is only available from WINDEV Suite SaaS 2025 - Update 2.

Getting the name of the last file accessed (connection via the identifier of the connection to the FTP server) Hide the details

<Result> = FTPName()
<Result>: Character string
  • Name of last file accessed by an FTP function. The file must have been modified by one of the following FTP functions: FTPAttribute, FTPDate, FTPTime, FTPSize, FTPListFile.
  • Empty string ("") if an error occurred. To get more details on the error, use ErrorInfo with the errMessage constant.
Remarks

Request to FTP server

FTPName sends no request to the FTP server.

Timeout

By default, all the FTP functions fail if the FTP server does not respond within 20 seconds. This time can be modified:

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.
AndroidAndroid Widget

Required permissions

This function changes the permissions required by the application.
Required permission: INTERNET
This permission allows the applications to open the network sockets.
Business / UI classification: Business Logic
Component: wd300com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/25/2025

Send a report | Local help