def size(self, fileToCheck, connId='<STR_LIT:default>'):
thisConn = self.__getConnection(connId)<EOL>outputMsg = "<STR_LIT>"<EOL>try:<EOL><INDENT>tmpSize = thisConn.size(fileToCheck)<EOL>outputMsg += str(tmpSize)<EOL><DEDENT>except ftplib.all_errors as e:<EOL><INDENT>raise FtpLibraryError(str(e))<EOL><DEDENT>if self.printOutput:<EOL><INDENT>logger.info(outputMsg)<EOL><DEDENT>return outputMsg<EOL>
Checks size of a file on FTP server. Returns size of a file in bytes (integer).
Parameters:
- fileToCheck - file name or path to a file on FTP server
- connId(optional) - connection identifier. By default equals 'default'
Example:
| ${file1size} = | size | /home/myname/tmp/uu.txt | connId=ftp1 |
| Should Be Equal As Numbers | ${file1size} | 31 |  |

Note that the SIZE command is not standardized, but is supported by many
 common server implementations.