Check the existence of the specified file.

# 1 ftp.exists

<ftp.exists name='name'/>

#### Exceptions

do not activate ftp connection

It is not possible to get the FTP communication with the server because there is not established.

Example

Check that exists the indicated file in the home directory.

Copy
<xsql-script name='ftp_exists_sample1'>
<body>
<ftp host='192.168.10.1' user='ftpuser' password='ftpdeister'>
<println><ftp.exists name='clients' /></println>
</ftp>
</body>
</xsql-script>

Tha name of the files contained in the home directory, shown by console, would be the followings:

Copy
tmp
cameras
clientes