Changes

Jump to navigation Jump to search
4 bytes removed ,  15:58, 25 July 2022
m
Text replacement - "ub-director" to "ubdirector"
|- 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 {{Code|$recursive}} specifies whether sub-directories 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'''
|- valign="top"
| '''Summary'''
|Returns the full paths to all files and directories found in the specified {{Code|$dir}} and its sub-directoriessubdirectories.<br/>. The related function {{Function||file:list}} returns relative file paths.
|- valign="top"
| '''Errors'''
|- valign="top"
| '''Summary'''
|Recursively deletes a file or directory specified by {{Code|$path}}.<br />The optional parameter {{Code|$recursive}} specifies whether sub-directories subdirectories will be deleted, too.<br />
|- valign="top"
| '''Errors'''
;Version 7.2.1
* Updated: {{Function||file:delete}}: {{Code|$recursive}} parameter added to prevent sub-directories subdirectories from being accidentally deleted.
* Fixed: {{Function||file:list}} now returns relative instead of absolute paths.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu