PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Timeout
  • Internet browser
  • Rights of users
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).
Versions 18 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WEBDEV sites in Linux.
New in version 18
WINDEVLinux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WEBDEV sites in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WEBDEV sites in Linux.
// 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 the details of the error, use ErrorInfo with the errMessage constant.
<Connection identifier>: Integer
Connection identifier, returned by FTPConnect.

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 the details of 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.
WINDEVUser code (UMC)

Internet browser

FTPCurrentDir requires Internet Explorer version 3 or later.
If a problem occurs, we recommend that you run a test with the browser by directly passing a link such as "ftp://server/...". If a problem occurs with Internet Explorer (with a UNIX server for example), use FTPCommand directly.

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.
Component: wd270com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment