Ftp.GetFileLengthAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
GetFileLengthAsync(String, Object)
Begins asynchronous GetFileLength operation. Returns the size of the specified remote file.
Declaration
public Task<long> GetFileLengthAsync(string remotePath, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | The path of the remote file. This cannot be a directory. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<Int64> | The size of the specified file in bytes. |
Implements
Remarks
Represents FTP SIZE command.
The SIZE command was not defined by the original RFC, but it has been widely supported for a number of years.