Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Sftp.GetInfo Method

Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9147)

GetInfo(String, Boolean)

Retrieves a SftpItem containing the information about the specified remote file or directory.

Declaration
public SftpItem GetInfo(string remotePath, bool failIfNotFound)
Parameters
Type Name Description
String remotePath

The path of the remote file or directory.

Boolean failIfNotFound

Specifies whether to throw an exception if file not found.

Returns
Type Description
SftpItem

Information about the remote file or directory.

Remarks

Returns null if no file is found and failIfNotFound argument is set to false.

GetInfo(String)

Retrieves a SftpItem containing the information about the specified remote file or directory.

Declaration
public SftpItem GetInfo(string remotePath)
Parameters
Type Name Description
String remotePath

The path of the remote file or directory.

Returns
Type Description
SftpItem

Information about the remote file or directory.

Remarks

Fails if path not found.

In This Article
  • GetInfo(String, Boolean)
  • GetInfo(String)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies