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 Value | Encryption | Compression Level |
0 | no | 6 |
1 | yes | 6 |
2 | no | 9 |
3 | yes | 9 |
4 | no | 2 |
5 | yes | 2 |
6 | no | 1 |
7 | yes | 1 |
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