$zip » History » Revision 4

« Previous | Revision 4/8 (diff) | Next »
Per Amundsen, 05/24/2018 10:06 AM

Added in 2.9


Returns the name of the zip operation during a on ZIP or on UNZIP event.

$zip(name, [N])

Returns information about a zip/unzip item during a on ZIP or on UNZIP event.

See also /zip, $ziperr, on ZIP, on UNZIP.


name - Name of the zip/unzip operation. (can be a wildcard)
[N] - The Nth matches name.


.name - Returns the name of zip/unzip operation.
.src - Returns the source file or folder.
.dest - Returns the destination file or folder.
.ratio - Returns 0, 1 or 2 where 0 = no compression, 1 = fastest compression, 2 = optimal compression.
.unzip - Returns $true if this is a unzip operation, otherwise $false.


; Zip the entire adiirc folder into ''
//zip name $qt($adiircdir)

; Print the zip result when then zip operation is finished.
on *:ZIP:echo -ag zipped $zip($zip).src into $zip($zip).dest status: $iif($ziperr,fail,ok)

Updated by Per Amundsen about 2 years ago · 4 revisions

Also available in: PDF HTML TXT