Script inputs
Script inputs include:
-
method
Required for all. Specifies the action to take:
-
get
retrieves a file from the specified path. -
put
sends a file to the specified path. -
dir
requests a list of files in the specified directory path.
-
-
mode
Optional.
- For the
put
method, this indicates whether data is written to a destination file in ASCII or binary mode. - For the
get
method, this indicates how data is read from a source file. The default is binary.
- For the
-
path
Required. Specifies the file path relative to the root web directory on the server.
- For the
put
method, this is the destination path to the file that is created on the server. - For the
get
method, this is the source path to the file that is read from the server. - For the
dir
method, this is the directory path that is read.
- For the
-
style
Optional. Used only with the
dir
method. Specifies the format of the outputted directory listing. The default isshort
.-
short
returns file names only, similar to the UNIX ls command. Default value. long
returns file names, dates, owners, and permissions, similar to the UNIX ls -l command.
-
-
data
Required. This is applicable only for the
put
method. Specifies the data to pass to the system.