# tSCPFileExists

Verifies the existence of a file on the defined SCP server.

tSCPFileExists checks, over a fully encrypted channel, if a file exists on a remote host.

## tSCPFileExists Standard properties

These properties are used to configure tSCPFileExists running in the Standard Job framework.

The Standard tSCPFileExists component belongs to the Internet family.

The component in this framework is available in all Talend products.

## Basic settings

| Properties | Description |
| --- | --- |
| Use an existing connection | Select this check box and in the Component<br>List drop-down list, select the desired connection component to<br>reuse the connection details you already defined.<br><br>Information noteNote: When a Job contains the parent Job and the child Job, do the following if you<br>want to share an existing connection between the parent Job and the child Job (for example,<br>to share the connection created by the parent Job with the child Job).<br><br><ol> <li>In the parent level, register the database connection to be shared               in the <span>Basic settings</span> view of the               connection component which creates that very database connection. </li> <li>In the child level, use a dedicated connection component to read               that registered database connection. </li> </ol><br><br>For an example about how to share a database connection across Job levels,<br>see [Sharing a database connection](https://help.qlik.com/talend/r/en-US/7.3/studio-user-guide/sharing-database-connection). |
| Host | SCP IP address. |
| Port | Listening port number of the SCP server. |
| Username | SCP user name. |
| Authentication method | SCP authentication method. |
| Password | SCP password.<br><br>To enter the password, click the [...] button<br>next to the password field, enter the password in double quotes in the pop-up dialog box,<br>and click OK to save the settings. |
| remote directory | File path on the remote directory. |
| Filename | Name of the file to check. |

## Advanced settings

| Properties | Description |
| --- | --- |
| tStatCatcher Statistics | Select this check box to collect log data at the component level. |

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | ERROR\_MESSAGE: the error message generated by the<br>component when an error occurs. This is an After variable and it returns a string. This<br>variable functions only if the Die on error checkbox is<br>cleared, if the component has this checkbox.<br><br><br>FILENAME: the name<br>of the file being processed. This is a Flow variable and it returns a string.<br><br><br>STATUS:<br>the execution result of the component. This is an After variable and it returns a<br>string.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>To fill up a field or expression with a variable, press Ctrl+Space to access the variable list and choose the variable to use from<br>it.<br><br>For more information about variables, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables). |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component is typically used as a single-component subJob but<br>can also be used with other components. |

**Related concepts**

* [Handling a file using SCP](https://help.qlik.com/talend/en-US/components/8.0/scp/tscpfileexists-tscpput-tscpclose-tjava-handling-file-using-scp-standard-component-in-this)