Changes

Jump to navigation Jump to search
156 bytes removed ,  20:00, 18 July 2022
no edit summary
! Description
|- valign="top"
| {{Function|File|file:descendants}}
| new function
|- valign="top"
| {{Function|File|file:is-absolute}}
| new function
|- valign="top"
| {{Function|File|file:read-text}}, {{Function|File|file:read-text-lines}}
| <code>$fallback</code> argument added
|- valign="top"
| {{Function|File|file:read-text-lines}}
| <code>$offset</code> and <code>$length</code> arguments added
|- valign="top"
| {{Function|File|file:resolve-path}}
| <code>$base</code> argument added
|}
|-
| '''Summary'''
|Returns the full paths to all files and directories found in the specified {{Code|$dir}}.<br/>The inverse function is {{Function|File|file:parent}}. The related function {{Function|File|file:list}} returns relative file paths.
|-
| '''Errors'''
|-
| '''Summary'''
|Returns the full paths to all files and directories found in the specified {{Code|$dir}} and its sub-directories.<br/>. The related function {{Function|File|file:list}} returns relative file paths.
|-
| '''Errors'''
|-
| '''Summary'''
|Returns the absolute path to the parent directory of a file or directory specified by {{Code|$path}}. An empty sequence is returned if the path points to a root directory.<br/>The inverse function is {{Function|File|file:children}}.<br />
|-
| '''Examples'''
;Version 9.3
* Added: {{Function|File|file:descendants}}
;Version 9.0
* Updated: {{Function|File|file:read-text-lines}}: <code>$offset</code> and <code>$length</code> arguments added.
;Version 8.5
* Updated: {{Function|File|file:read-text}}, {{Function|File|file:read-text-lines}}: <code>$fallback</code> argument added.
;Version 8.2
* Added: {{Function|File|file:is-absolute}}* Updated: {{Function|File|file:resolve-path}}: base argument added
;Version 8.0
* Added: {{Function|File|file:current-dir}}, {{Function|File|file:base-dir}}, {{Function|File|file:children}}
;Version 7.8
* Added: {{Function|File|file:parent}}, {{Function|File|file:name}}* Updated: error codes; {{Function|File|file:read-binary}}, {{Function|File|file:write-binary}}: {{Code|$offset}} and {{Code|$length}} arguments added.
* Deleted: file:base-name, file:dir-name
;Version 7.7
* Added: {{Function|File|file:create-temp-dir}}, {{Function|File|file:create-temp-file}}, {{Function|File|file:temp-dir}}
* Updated: all returned strings that refer to existing directories will be suffixed with a directory separator.
;Version 7.3
* Added: {{Function|File|file:append-text}}, {{Function|File|file:write-text}}, {{Function|File|file:append-text-lines}}, {{Function|File|file:write-text-lines}}, {{Function|File|file:line-separator}}* Aligned with latest specification: $file:directory-separator → {{Function|File|file:dir-separator}}, $file:path-separator → {{Function|File|file:path-separator}}, file:is-directory → {{Function|File|file:is-dir}}, file:create-directory → {{Function|File|file:create-dir}}* Updated: {{Function|File|file:write-binary}}, {{Function|File|file:append-binary}}: output limited to a single value
;Version 7.2.1
* Updated: {{Function|File|file:delete}}: {{Code|$recursive}} parameter added to prevent sub-directories from being accidentally deleted.* Fixed: {{Function|File|file:list}} now returns relative instead of absolute paths.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu