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

Sftp.IFtp.GetInfoAsync Method

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

IFtp.GetInfoAsync(String, Boolean, Object)

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

Declaration
Task<FileSystemItem> IFtp.GetInfoAsync(string remotePath, bool failIfNotFound, object state)
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.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<FileSystemItem>

Information about the remote file or directory.

Implements
IFtp.GetInfoAsync(String, Boolean, Object)
Remarks

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

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