getFileSize (method)
Returns the size of a remote file.
Syntax
- (long long)getFileSize:(NSString*)remoteFile;
public func getFileSize(_ remoteFile: String) throws -> Int64
Remarks
Use this method to retrieve the size of a remote file. This method attempts to use SIZE and MLST commands if available, and resorts to LIST command otherwise.
Please note that this command only looks for the file in the current directory. To check for existence of a file in a different directory, change to it with ChangeDir command first, then call this method.