SecureBlackbox 2020 Python Edition

Questions / Feedback?

get_file_size Method

Returns the size of a remote file.

Syntax

def get_file_size(remote_file: str) -> int: ...

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 change_dir command first, then call this method.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 Python Edition - Version 20.0 [Build 8154]