Changes

Jump to navigation Jump to search
990 bytes added ,  16:05, 11 May 2015
no edit summary
| '''Summary'''
|Returns an {{Code|xs:boolean}} indicating whether the argument {{Code|$path}} points to an existing directory.<br />
|}
 
==file:is-absolute==
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|file:is-absolute|$path as xs:string|xs:boolean}}<br />
|-
| '''Summary'''
|Returns an {{Code|xs:boolean}} indicating whether the argument {{Code|$path}} is absolute.<br />The behavior of this function depends on the operating system: On Windows, an absolute path starts with the drive letter and a colon, whereas on Linux it starts with a slash.
|}
==file:resolve-path==
 
{{Mark|Updated in BaseX 8.2}}: base argument added
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|file:resolve-path|$path as xs:string|xs:string}}<br />{{Func|file:resolve-path|$path as xs:string, $base as xs:string|xs:string}}<br />
|-
| '''Summary'''
|Transforms the {{Code|$path}} argument to an absolute operating system path.<br />If the path is relative, and if an absolute {{Code|$base}} path is specified, it will be resolved against this path.|-| '''Errors'''|{{Error|is-relative|#Errors}} the specified base path is relative.<br />
|}
|{{Code|is-dir}}
|The specified path is a directory.
|-
|{{Code|is-relative}}
|The specified path is relative (and must be absolute).
|-
|{{Code|unknown-encoding}}
=Changelog=
 
;Version 8.2
* Added: [[#file:is-absolute|file:is-absolute]]
* Updated: [[#file:resolve-path|file:resolve-path]]: base argument added
;Version 8.0
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu