This is an old revision of the document!
Session.FileExists Method
Checks for existence of remote file.
Syntax
public bool FileExists(string path)
Advertisement
Parameters
| Name | Description |
|---|---|
| string path | Full path to remote file. |
Return Value
true if file exists, false otherwise.
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | Session is not opened. |
| SessionLocalException | Error communicating with winscp.com. See the exception documentation for details. |
| TimeoutException | Timeout waiting for winscp.com to respond. |