Virtuoso has FTP client functionality, that can be used inside
Virtuoso/PL. This Virtuoso function mimics the FTP dir command. As
with any PL, this can be combined with Web Services and SOAP.
The remote server address or IP Address.
The username for authentication at the FTP server.
The accompanying password for authentication at the FTP
The full path of the remote directory to list the contents
Flag to specify whether to use passive mode. This can be one "1"
for passive mode, or zero "0" for active mode. One "1" is assumed
This function returns a vector of descriptions from the result
of performing the dir command on the remote server. If errors occur
then these will be returned instead.
This function will return any errors returned by the remote FTP
Example24.120.Listing files on
the remote FTP server
The following command will send the vector of the descriptions
of the files in the virtuoso30 directory on the remote sever to the
Virtuoso debug console, assuming the server was started with the -d
or +debug option: