# Handling a file using SCP

In this scenario, a six-component Job checks if a defined file exists in a specified directory on a remote SCP server, and returns a message to indicate the result of the verification. If the file doesn't exist in that directory, the Job will put the local file to the SCP server, and then get the file from the SCP server to another defined local directory to verify that the file has been uploaded correctly.

![](https://help.qlik.com/talend/en-US/components/8.0/Resources/images/components-tscpfileexists_s1_job.png)

### In this section

* [Dropping and linking the components](https://help.qlik.com/talend/en-US/components/8.0/scp/tscpfileexists-tscpput-tscpclose-tjava-dropping-and-linking-components-standard-component-add)
* [Configuring the tSCPConnection component](https://help.qlik.com/talend/en-US/components/8.0/scp/tscpfileexists-tscpput-tscpclose-tjava-configuring-tscpconnection-component-standard-component)
* [Configuring file existence verification](https://help.qlik.com/talend/en-US/components/8.0/scp/tscpfileexists-tscpput-tscpclose-tjava-configuring-file-existence-verification-standard-component)
* [Configuring the tSCPPut component](https://help.qlik.com/talend/en-US/components/8.0/scp/tscpfileexists-tscpput-tscpclose-tjava-configuring-tscpput-component-standard-component)
* [Configuring the tSCPGet component](https://help.qlik.com/talend/en-US/components/8.0/scp/tscpfileexists-tscpput-tscpclose-tjava-configuring-tscpget-component-standard-component)
* [Configuring the tSCPClose component](https://help.qlik.com/talend/en-US/components/8.0/scp/tscpfileexists-tscpput-tscpclose-tjava-configuring-tscpclose-component-standard-component)
* [Executing the Job](https://help.qlik.com/talend/en-US/components/8.0/scp/tscpfileexists-tscpput-tscpclose-tjava-executing-job-standard-component-press)

**Related reference**

* [tSCPFileExists](https://help.qlik.com/talend/en-US/components/8.0/scp/tscpfileexists "Verifies the existence of a file on the defined SCP server.")
* [tSCPPut](https://help.qlik.com/talend/en-US/components/8.0/scp/tscpput "Copies files to the defined SCP server.")
* [tSCPGet](https://help.qlik.com/talend/en-US/components/8.0/scp/tscpget "Copies files from the defined SCP server.")
* [tSCPConnection](https://help.qlik.com/talend/en-US/components/8.0/scp/tscpconnection "Opens an SCP connection to transfer files in one transaction.")
* [tSCPClose](https://help.qlik.com/talend/en-US/components/8.0/scp/tscpclose "Closes a connection to an SCP protocol.")

**Related information**

* [tJava](https://help.qlik.com/talend/en-US/components/8.0/java-custom-code/tjava)