> For the complete documentation index, see [llms.txt](https://docs.does.qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.does.qa/test-steps/check/check-sftp-file-exists.md).

# Check SFTP File Exists

Check SFTP File Exists connects to an SFTP server and confirms a file is present at the path you give. Use it to verify exports, reports, or other files your application delivers to SFTP.

![Check SFTP file exists Test Step](https://app.does.qa/screenshots/node/check_sftp_fileExist.png)

## When to use it

* Confirm a nightly export landed on the server after a scheduled Run.
* Verify a file upload from the application completed on SFTP.
* Pair with [Check SFTP File Count](/test-steps/check/check-sftp-file-count.md) when you need a directory total instead of one file.

## Configure

### Basics

| Field             | What to set                                                     |
| ----------------- | --------------------------------------------------------------- |
| **URL**           | SFTP server address (supports [Values](/values/value-store.md)) |
| **Port**          | `22` (default)                                                  |
| **User**          | SFTP username (supports Values)                                 |
| **Password**      | SFTP password (supports Values)                                 |
| **File Location** | Full path to the file on the server                             |

### Advanced

| Field                                 | What to set                                          |
| ------------------------------------- | ---------------------------------------------------- |
| **Status on fail**                    | [Failed Status](/test-step-options/failed-status.md) |
| **When should screenshots be taken?** | `Always` or `On Failures` (default)                  |

## Related

* [Check SFTP File Does Not Exist](/test-steps/check/check-sftp-file-does-not-exist.md)
* [Check SFTP File Count](/test-steps/check/check-sftp-file-count.md)
* [Check](/test-steps/check.md)

**Tags:** `check`, `sftp`, `fileExist`
