PowerTCP FTP for .NET
GetSize Method



Path to the file on the server.
Get the size of a remote file.
Syntax
Public Function GetSize( _
   ByVal path As String _
) As Long
Dim instance As Ftp
Dim path As String
Dim value As Long
 
value = instance.GetSize(path)
public long GetSize( 
   string path
)
public:
int64 GetSize( 
   String^ path
) 

Parameters

path
Path to the file on the server.

Return Value

Size of the file specified if the SIZE command is supported, or 0 if the SIZE command is not supported.
Exceptions
ExceptionDescription
FtpProtocolExceptionThe server returned an error response code.
Remarks
Ftp.Features.Size may be checked to determine server support for the SIZE command.
See Also

Reference

Ftp Class
Ftp Members


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic