This is an old revision of the document!

Session.GetFileInfo Method

Retrieves information about remote file.

This feature is available only in the latest beta release.

Advertisement

Syntax

public RemoteFileInfo GetFileInfo(string path)

Parameters

Name Description
string path Full path to remote file.

Return Value

RemoteFileInfo.

Exceptions

Exception Condition
InvalidOperationException Session is not opened.
SessionLocalException Error communicating with winscp.com.
See the exception documentation for details.
SessionRemoteException Session has failed.
Retrieving information has failed.
See the exception documentation for details.
TimeoutException Timeout waiting for winscp.com to respond.

Advertisement

Example

See example for Session.GetFiles.

Last modified: by martin