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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 the details of 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 the details of the error, use ErrorInfo with the errMessage constant.
<Connection identifier>: Integer
Connection identifier, returned by FTPConnect.
<New current directory>: Character string (with quotes)
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.
Reports and QueriesUser code (UMC)Ajax

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