Changes

Jump to navigation Jump to search
104 bytes removed ,  06:46, 29 November 2019
let $path := 'audio/'
let $files := file:list($path, true(), '*.mp3')
let $zip := archive:create( $files ! element archive:entry { . }, for $file in $files ! return file:read-binary($path || .$file))
return file:write-binary('mp3.zip', $zip)</pre>
|}
==archive:create-from==
 
{{Mark|Updated with Version 9.2}}: options added.
{| width='100%'
|-
| '''Errors'''
|{{Error|encode|#Errors}} the specified encoding is invalid or not supported, or the string conversion failed. Invalid XML characters will be ignored if {{Option|CHECKSTRINGS}} option is turned off.<br />{{Error|error|#Errors}} archive creation failed for some other reason.
|-
| '''Examples'''
|-
|{{Code|encode}}
|The specified encoding is invalid or not supported, or the string conversion failed. Invalid XML characters will be ignored if the <code>[[Options#CHECKSTRINGS{{Option|CHECKSTRINGS]]</code> option }} is turned off.
|-
|{{Code|error}}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu