[PAID] 📦ZipPro || Zip Archive Manager

Description:

It is an extension to handing zip file, Create, Add, Extract, Update, Remove files from a zip file, add password protected zip files, Support AesKeyStrength, CompressionLevel, CompressionMethod and EncryptionMethod…more

Request Permissions:

READ_EXTERNAL_STORAGE
WRITE_EXTERNAL_STORAGE

Docs:



Events:-


blocks(1)

OnStart

This event is triggered when a specific task identified by its `id` has started or initiated.
Params

- id | text | return the unique identifier that is you initialized it for the zip file.


blocks(2)

OnProgress

This event is triggered to report the progress of a specific task identified by its `id`.
Params

- id | text | return the unique identifier that is you initialized it for the zip file.

- percentDone | number | return the percentage of completion for the task.

- fileName | text | return the name of the file or item being processed as part of the task.

- taskType | any | return the type of the task.
@tasks types available: [NONE | ADD_ENTRY | REMOVE_ENTRY | CALCULATE_CRC | EXTRACT_ENTRY | MERGE_ZIP_FILES | SET_COMMENT | RENAME_FILE] :point_down:

  • blocks(36)

TASK_TYPE_NONE

Returns the constant for the 'NONE' task type in the progress event.
  • blocks(37)

TASK_TYPE_ADD_ENTRY

Returns the constant for the 'ADD_ENTRY' task type in the progress event, It indicates adding an entry to the zip archive.
  • blocks(38)

TASK_TYPE_REMOVE_ENTRY

Returns the constant for the 'REMOVE_ENTRY' task type in the progress event, It indicates removing an entry from the zip archive.
  • blocks(39)

TASK_TYPE_CALCULATE_CRC

Returns the constant for the 'CALCULATE_CRC' task type in the progress event, It indicates calculating CRC (Cyclic Redundancy Check) for an entry in the zip archive.
  • blocks(40)

TASK_TYPE_EXTRACT_ENTRY

Returns the constant for the 'EXTRACT_ENTRY' task type in the progress event, It indicates extracting an entry from the zip archive.
  • blocks(41)

TASK_TYPE_MERGE_ZIP_FILES

Returns the constant for the 'MERGE_ZIP_FILES' task type in the progress event, It indicates merging zip files.
  • blocks(42)

TASK_TYPE_SET_COMMENT

Returns the constant for the 'SET_COMMENT' task type in the progress event, It indicates setting a comment for the zip archive.
  • blocks(43)

TASK_TYPE_RENAME_FILE

Returns the constant for the 'RENAME_FILE' task type in the progress event, It indicates rename files.


blocks(3)

OnFinish

This event is triggered when a specific task identified by its `id` has completed successfully.
Params

- id | text | return the unique identifier that is you initialized it for the zip file.


blocks(4)

OnFailed

This event is triggered when a specific task identified by its id has encountered an error or failure.
Params

- id | text | return the unique identifier that is you initialized it for the zip file.

- message | text | return descriptive message providing information about the failure.



Methods :-


blocks(5)

InitializeZipFile

Initializes a new zip file with the given ID and zip file path.
Params

- id | text | the unique identifier for the zip file.

- zipFilePath | text | the file path where the zip file will be created or accessed.


blocks(6)

SetCompressionMethod

Sets the compression method for the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

- compressionMethod | number | compression method type
@compression methods types available: [DEFLATE | STORE | AES_INTERNAL_ONLY] :point_down:

  • blocks(44)

COMPRESSION_METHOD_DEFLATE

Returns the constant for DEFLATE compression method.
  • blocks(45)

COMPRESSION_METHOD_STORE

Returns the constant for STORE (no compression) compression method.
  • blocks(46)

COMPRESSION_METHOD_AES_INTERNAL_ONLY

Returns the constant for AES_INTERNAL_ONLY compression method.


blocks(7)

SetCompressionLevel

Returns the constant for no compression.
Params

- id | text | the unique identifier that is you set it for the zip file.

- compressionLevel | any | compression level type
@compression level types available: [NO_COMPRESSION | FASTEST | FASTER | FAST | MEDIUM_FAST | NORMAL | HIGHER | MAXIMUM | PRE_ULTRA | ULTRA] :point_down:

  • blocks(47)

COMPRESSION_LEVEL_NO_COMPRESSION

Returns the constant for no compression.
  • blocks(48)

COMPRESSION_LEVEL_FASTEST

Returns the constant for fastest compression.
  • blocks(49)

COMPRESSION_LEVEL_FASTER

Returns the constant for faster compression.
  • blocks(50)

COMPRESSION_LEVEL_FAST

Returns the constant for fast compression.
  • blocks(51)

COMPRESSION_LEVEL_MEDIUM_FAST

Returns the constant for medium-fast compression.
  • blocks(52)

COMPRESSION_LEVEL_NORMAL

Returns the constant for normal compression.
  • blocks(53)

COMPRESSION_LEVEL_HIGHER

Returns the constant for higher compression.
  • blocks(54)

COMPRESSION_LEVEL_MAXIMUM

Returns the constant for maximum compression.
  • blocks(55)

COMPRESSION_LEVEL_PRE_ULTRA

Returns the constant for pre-ultra compression.
  • blocks(56)

COMPRESSION_LEVEL_ULTRA

Returns the constant for ultra compression.


blocks(8)

SetEncryptFiles

Sets whether to encrypt files for the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

- encryptFiles | boolean | that determines whether files within the specified zip archive should be encrypted or not.


blocks(9)

SetEncryptionMethod

Sets the encryption method for the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

- encryptionMethod | any | encryption method type
@encryption methods types available: [NONE | ZIP_STANDARD | ZIP_STANDARD_VARIANT_STRONG | AES] :point_down:

  • blocks(57)

ENCRYPTION_METHOD_NONE

Returns the constant for no encryption.
  • blocks(58)

ENCRYPTION_METHOD_ZIP_STANDARD

Returns the constant for standard ZIP encryption.
  • blocks(59)

ENCRYPTION_METHOD_ZIP_STANDARD_VARIANT_STRONG

Returns the constant for strong variant of standard ZIP encryption.
  • blocks(60)

ENCRYPTION_METHOD_AES

Returns the constant for AES encryption.


blocks(10)

SetAesKeyStrength

Sets the AES key strength for encryption of the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

- aesKeyStrength | any | aes key strength type
@aes key strength types available: [128-bit | 192-bit | 256-bit] :point_down:

  • blocks(61)

KEY_STRENGTH_128

Returns the AES key strength constant for 128-bit encryption.
  • blocks(62)

KEY_STRENGTH_192

Returns the AES key strength constant for 192-bit encryption.
  • blocks(63)

KEY_STRENGTH_256

Returns the AES key strength constant for 256-bit encryption.


blocks(11)

GetFilesNamesList

Gets a list of file names within the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

Return type : list


blocks(12)

IsPasswordProtected

Checks if the specified zip archive is password-protected.
Params

- id | text | the unique identifier that is you set it for the zip file.

Return type : boolean


blocks(13)

IsSplitArchive

Checks if the specified zip archive is a split archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

Return type : boolean


blocks(14)

IsValidZipFile

Checks if the specified zip archive is a valid zip file.
Params

- id | text | the unique identifier that is you set it for the zip file.

Return type : boolean


blocks(15)

AddFile

Adds a file to the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

- filePath | text | the file path of the file that you want to add to the zip archive.


blocks(16)

AddFiles

Adds multiple files to the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

- filesPaths | list | the files paths of the files that you want to add to the zip archive.


blocks(17)

AddFolder

Adds a folder to the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

- folderPath | text | the folder path of the folder that you want to add to the zip archive.


blocks(18)

UnZipAll

Extracts all contents of the specified zip archive to the specified destination path.
Params

- id | text | the unique identifier that is you set it for the zip file.

- destinationPath | text | the destination path where the contents of the zip archive will be extracted.


blocks(19)

UnZipSingleFileOrFolder

Extracts a single file or folder from the specified zip archive to the specified destination path.
Params

- id | text | the unique identifier that is you set it for the zip file.

- fileOrFolderName | text | the name of the file or folder within the zip archive that you want to extract.

- destinationPath | text | the destination path where the extracted file or folder will be placed..

- newFileOrFolderName | text | a new name for the extracted file or folder.


blocks(20)

DeleteFile

Deletes a file from the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

- fileName | text | the name of the file within the zip archive that you want to delete.


blocks(21)

DeleteFiles

Deletes multiple files from the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

- filesNames | list | a list of file names (as texts) that you want to delete from the zip archive.


blocks(22)

RenameFile

Renames a file within the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

- fileNameToRename | text | the name of the file within the zip archive that you want to rename.

- newFileName | text | the new name that you want to assign to the file within the zip archive.


blocks(23)

RenameFiles

Renames multiple files within the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

- filesListToRename | list | a list of file names (as texts) that you want to rename within the zip archive.

- newFilesList | list | a list of new file names (as texts) that correspond to the files listed in filesListToRename. Each new name in this list corresponds to a file to be renamed.


blocks(24)

CreateSplitZipFile

Creates a split zip file from a list of files.
Params

- id | text | the unique identifier that is you set it for the zip file.

- filesPaths | list | list of file paths (as texts) representing the files to be included in the split zip file.

- splitArchive | boolean | indicating whether the zip archive should be split into multiple segments.

- splitLengthBytes | number | the size, in bytes, at which the zip archive should be split into segments.


blocks(25)

CreateSplitZipFileFromFolder

Creates a split zip file from a folder.
Params

- id | text | the unique identifier that is you set it for the zip file.

- folderPath | text | the path to the folder that will be compressed into a split zip file.

- splitArchive | boolean | indicating whether the zip archive should be split into multiple segments.

- splitLengthBytes | number | the size, in bytes, at which the zip archive should be split into segments.


blocks(26)

MergeSplitFiles

Merges split archive segments into a single zip file.
Params

- id | text | the unique identifier that is you set it for the zip file.

- mergedZipFile | text | the path to the output merged zip file.


blocks(27)

convertStringToBytes

Converts a string value with unit suffix (KB, MB, GB) to bytes.
Params

- value | text | string value to be converted to bytes.

Return type : number


blocks(28)

setRunInThread

Sets whether the specified zip archive should run operations in a separate thread.
Params

- id | text | the unique identifier that is you set it for the zip file.

- runInThread | boolean | indicating whether the zip archive should run operations in a separate thread or not.


blocks(29)

IsRunInThread

Checks whether the specified zip archive's operations are configured to run in a separate thread.
Params

- id | text | the unique identifier that is you set it for the zip file.

Return type : boolean


blocks(30)

SetPassword

Sets the password for the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

- password | text | password as a string to be set for the zip archive.


blocks(31)

SetComment

Sets the comment for the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

- comment | text | comment as a string to be set for the zip archive.


blocks(32)

GetComment

Gets the comment for the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

Return type : text


blocks(33)

setUseUtf8CharsetForPasswords

Sets the usage of UTF-8 charset for passwords in the specified zip archive.
Params

- id | text | the unique identifier that is you set it for the zip file.

- useUtf8 | boolean | indicating whether the zip archive should use UTF-8 charset for passwords or not.


blocks(34)

IsUseUtf8CharsetForPasswords

Checks whether the specified zip archive uses UTF-8 charset for passwords.
Params

- id | text | the unique identifier that is you set it for the zip file.

Return type : boolean


blocks(35)

idExists

Check is id initialized before or not
Params

- id | text | the unique identifier that is you set it for the zip file.

Return type : boolean



the end rant over GIF

AIX:

Paid Send PM to buy
Price : 8.5 ~ 10 [Depends on your country]

5 Likes

Simple Demo

Demo Blocks:

1 Like

Tutorial How To Use This Extension

1 Like

thank you, this looks powerful
btw. you forgot to tell us the price… so how much is it? thank you…

Taifun

1 Like

can this Un-zip and save files in ASD directory

Thank you for reminding me

:point_down:

1 Like

yeah you can do that using this block

or this

Just set the destination path to where you want to save the files

Edit: Tutorial :point_down:

1 Like

New Update:

  • rename extension from ZipPro To ZipArchive
  • rename some blocks
  • solve bugs about progress event
  • add new blocks
  • remove some blocks

New Blocks Added:

Docs:


blocks(5)

OnErrorOccurred

This event is triggered when an error occurs during an operation.
Params

- error | text | the error that occurred during the operation.

- errorFrom | text | the source or origin of the error.


blocks(6)

OnCanceled

This event is triggered when an operation is canceled.
Params

- id | text | return the unique identifier that is you initialized it for the zip file.


blocks(7)

SetAesVersion

Set the AES version for a specific compressed file.
Params

- id | text | the unique identifier that is you set it for the zip file.

- aesVersion | number | aes version type
@aes versions types available: [ONE | TWO]

  • blocks(8)

AES_VERSION_ONE

AES version one (AES-128).
  • blocks(9)

AES_VERSION_TWO

AES version two (AES-256).


blocks(16)

CreateSplitZipFromFile

Creates a split zip file from single file.
Params

- id | text | the unique identifier that is you set it for the zip file.

- filePath | text | The path to the single file that will be used as the source for creating the split zip file.

- splitArchive | boolean | If true, the archive will be split; otherwise, it won't.

- splitLengthBytes | number | The maximum size, in bytes, for each split part of the archive.


blocks(15)

SetFileNameInZip

Sets the specified file name within the zip archive, using it with CreateSplitZipFromFile block
Params

- id | text | the unique identifier that is you set it for the zip file.

- fileNameInZip | text | The file name to be set within the zip archive.


blocks(14)

ExcludeFiles

To exclude specific files from being added to a zip file
Params

- id | text | the unique identifier that is you set it for the zip file.

- filesNames | list | A list of file names (as texts) to be excluded from the zip file.


blocks(13)

CancelAllTasks

To control whether to cancel all tasks associated with a specific zip file.
Params

- id | text

- cancelAllTasks | boolean | If cancelAllTasks is set to true, all ongoing tasks associated with the operation will be canceled.


blocks(12)

IsCancelAllTasks

To query whether all tasks for a specific zip file are set to be canceled or not.
Params

- id | text | the unique identifier that is you set it for the zip file.

Return type : boolean


blocks(11)

Pause

To control whether ongoing tasks for a specific zip file should be paused.
Params

- id | text | the unique identifier that is you set it for the zip file.

- pause | boolean | If pause is set to true, ongoing tasks will be paused; if set to false, they will continue.


blocks

IsPause

To query whether tasks for a specific zip file are set to be paused or not.
Params

- id | text | the unique identifier that is you set it for the zip file.

Return type : boolean


Tutorial:

1 Like