Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

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

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


UnZipFile.ItemExternalFileAttributes - UnZipFile.ItemInternalFileAttributes

Feedback: Report problem or ask question.