Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

UnZipFile.ItemFlag

Queries the flags for this item.

Component Version macOS Windows Linux Server iOS SDK
Compression 3.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "UnZipFile.ItemFlag"; Index )   More

Parameters

Parameter Description Example
Index Index of the item from 0 to UnZipFile.ItemCount-1. $index

Result

Returns number or error.

Description

Queries the flags for this item.
The flag is a bit field with various values.
Last bit of the flag is encryption state: value is 1 (odd) for encrypted and 0 (even) for unencrypted value.
The bit values 2 and 4 define compression level between 0 to 9.

Flag ValueEncryptionCompression Level
0no6
1yes6
2no9
3yes9
4no2
5yes2
6no1
7yes1

Examples

Check compressed state:

Set Variable [$compressed; Value: MBS( "Math.BitwiseAND"; MBS( "UnZipFile.ItemFlag"; Index ); 1 ) = 1 ]

See also

Example Databases

This function checks for a license.

Created 18th August 2014, last changed 31st August 2017


UnZipFile.ItemExternalFileAttributes - UnZipFile.ItemInternalFileAttributes