setFileSize (method)

Sets the size of a file or alternate stream.

Syntax

- (void)setFileSize:(NSString*)fileName :(long long)size :(NSString*)password;
public func setFileSize(_ fileName: String, _ size: Int64, _ password: String) throws -> Void

Remarks

This method sets the size of the file or alternate stream specified by FileName.

The value passed for FileName must be a vault-local absolute path.

The Size parameter specifies the new size of the file or alternate stream, which must be greater than or equal to 0.

Applications can also change the size of a file or alternate stream using the stream objects returned by the OpenFile and OpenFileEx methods.

Note: This method can only be called when Active is true, and cannot be called within events.

Copyright (c) 2022 Callback Technologies, Inc. - All rights reserved.
CBFS Vault 2020 iOS Edition - Version 20.0 [Build 8165]