This is an old revision of the document!
Session.FileExists Method
Checks for existence of remote file.
This feature will be available only with the next release.
Advertisement
Syntax
public bool FileExists(string path)
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. |
Advertisement
Example
See example for Session.GetFiles
.