SecureBlackbox 2020 iOS Edition

Questions / Feedback?

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.

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