Changes

Jump to navigation Jump to search
1 byte added ,  17:12, 9 March 2023
no edit summary
|<pre>file:list(
$dir as xs:string,
$recursive as xs:boolean ? := false(), $pattern as xs:string := ()
) as xs:string*</pre>
|- valign="top"
| '''Summary'''
|Lists all files and directories found in the specified {{Code|$dir}}. The returned paths are relative to the provided path.<br/>The optional parameter If {{Code|$recursive}} specifies whether is set to true, subdirectories will be traversed, too.<br/>The optional parameter {{Code|$pattern}} defines a file name pattern in the [[Commands#Glob_Syntax|Glob Syntax]]. If present, only those files and directories are returned that correspond to the pattern. Several patterns can be separated with a comma ({{Code|,}}).<br/>
|- valign="top"
| '''Errors'''
$path as xs:string,
$encoding as xs:string := (),
$fallback as xs:boolean ? := false()
) as xs:string</pre>
|- valign="top"
|<pre>file:read-text-lines(
$path as xs:string,
$encoding as xs:string := (), $fallback as xs:boolean ? := false(), $offset as xs:integer ? := (), $length as xs:integer ? := ()
) as xs:string*</pre>
|- valign="top"
|<pre>file:delete(
$path as xs:string,
$recursive as xs:boolean ? := false()
) as empty-sequence()</pre>
|- valign="top"
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu