Mac OS X
Components Crossplatform Mac & Win Server Client Old Guides Examples
New in version: 7.3 7.4 7.5 8.0 8.1 8.2 8.3 8.4 8.5 8.6 Statistic
Sets the list of FTP or SFTP commands to pass to the server prior to your FTP request.
|Component||Version||macOS||Windows||Server||FileMaker Cloud||FileMaker iOS SDK|
|curl||The CURL session handle.||$curl|
|Value||The ftp commands.||"mkdir testfolder"|
Returns "OK" on success.
DescriptionSets the list of FTP or SFTP commands to pass to the server prior to your FTP request.
This will be done before any other commands are issued (even before the CWD command for FTP). Disable this operation again by passing no value to this function. When speaking to a FTP (or SFTP) server, prefix the command with an asterisk (*) to make libcurl continue even if the command fails as by default libcurl will stop at first failure.
The set of valid FTP commands depends on the server (see RFC 959 for a list of mandatory commands).
The valid SFTP commands are: chgrp, chmod, chown, ln, mkdir, pwd, rename, rm, rmdir, symlink.
This option takes a list of items. So this function takes a variable number of arguments. If you call function with 2 parameters, you set an empty list. If you call it with 5 parameters, you set a list with 3 values.
See also CURL.SetOptionPreQuote and CURL.SetOptionPostQuote.
Here is list of raw FTP commands:
File names may be passed with quotes to include spaces in file names.
See also QUOTE option in CURL manual.
Delete file only:
Create folder with FTP:
Rename file using two FTP commands:
Set file permissions for FTP:
Call with three parameters:
List all files:
Connect to FTP server and delete a file:
Move file on SFTP in done folder with variables and quotes:
Change file permissions via SFTP:
Change file owner group via SFTP:
Change file owner via SFTP:
Created 18th August 2014, last changed 30th November 2018
Feedback: Report problem or ask question.
MBS FileMaker blog