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

Ftp.GetFileLength Method

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

GetFileLength(String)

Returns the size of the specified remote file.

Declaration
public long GetFileLength(string remotePath)
Parameters
Type Name Description
String remotePath

The path of the remote file. This cannot be a directory.

Returns
Type Description
Int64

The size of the specified file in bytes.

Implements
IFtp.GetFileLength(String)
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.

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