Change to the parent directory in the hierarchy.
1 ftp.cdup
<ftp.cdup />
Returns | |
---|---|
Type | Description |
Integer | Command response code (200 OK, 550 not found... see Reply codes). |
Exceptions
no active ftp connection
It is not possible to obtain the FTP communication with the server because there is not established.
Example
Copy
<xsql-script name='ftp_cdup_sample1'> <body> <ftp host='192.168.10.1' user='ftpuser' password='ftpdeister'> <println><ftp.list /></println> <ftp.cwd dir='clients' /> <println><ftp.list /></println> <ftp.cdup /> <println><ftp.list /></println> </ftp> </body> </xsql-script>
Completing the example of the tag <cwd>, the work directory 'clients' is changed to the parent directory, going up one level i the hierarchy.