|-
| valign='top' width='90' | '''Signatures'''
|<code><b>file:base-name</b>($path as xs:string) as xs:integerstring</code><br /><code><b>file:base-name</b>($path as xs:string, $suffix as xs:string) as xs:integerstring</code><br />
|-
| valign='top' | '''Summary'''
|This function returns the base-name of the path specified by <code>$path</code>, which is the component after the last directory separator.<br /> If <code>$suffix</code> is specified, it will be trimmed from the end of the result.<br />
|}
|-
| valign='top' width='90' | '''Signatures'''
|<code><b>file:dir-name</b>($path as xs:string) as xs:integerstring</code><br />
|-
| valign='top' | '''Summary'''
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0001]]</b> is raised if the specified path does not exist.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0003]]</b> is raised if the specified path does not point to a directory.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0008FOFL0000]]</b> is raised if the operation fails for some other reason.<br />
|}
|-
| valign='top' width='90' | '''Signatures'''
|<code><b>file:create-directory</b>($path directory as xs:string) as empty-sequence()</code><br />
|-
| valign='top' | '''Summary'''
|This function recursively creates the directories specified by <code>$pathdirectory</code>.<br />
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0002]]</b> is raised if a file with the same path already exists.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0006]]</b> is raised if the specified path is invalid (e.g., contains invalid characters).<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0008FOFL0000]]</b> is raised if the operation fails for some other reason.<br />
|}
|-
| valign='top' width='90' | '''Signatures'''
|<code><b>file:read-text</b>($path as xs:string) as xs:string</code><br /><code><b>file:read-text</b>($path as xs:string, $encoding as xs:string) as xs:string</code><br />
|-
| valign='top' | '''Summary'''
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0001]]</b> is raised if the specified file does not exist.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0004]]</b> is raised if the specified path is a directory.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0007FOFL0005]]</b> is raised if the specified encoding is not supported, or unknown.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0008FOFL0000]]</b> is raised if the operation fails for some other reason.<br />
|}
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0001]]</b> is raised if the specified file does not exist.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0004]]</b> is raised if the specified path is a directory.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0008FOFL0000]]</b> is raised if the operation fails for some other reason.<br />
|}
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0004]]</b> is raised if the specified path is a directory.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0008FOFL0000]]</b> is raised if the operation fails for some other reason.<br />
|}
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0004]]</b> is raised if the specified path is a directory.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0008FOFL0000]]</b> is raised if the operation fails for some other reason.<br />
|}
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0004]]</b> is raised if the specified path is a directory.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0008FOFL0000]]</b> is raised if the operation fails for some other reason.<br />
|}
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0004]]</b> is raised if the specified path is a directory.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0008FOFL0000]]</b> is raised if the operation fails for some other reason.<br />
|}
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0001]]</b> is raised if the specified source does not exist.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0004FOFL0002]]</b> is raised if the specified source is a directoryand the target is a file.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0006FOFL0003]]</b> is raised if the parent of the specified target path points to a file in a non-existing is no directory.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0008FOFL0000]]</b> is raised if the operation fails for some other reason.<br />
|}
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0001]]</b> is raised if the specified source does not exist.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0006FOFL0002]]</b> is raised if the specified source is a directory and the target path points to is a file in a non-existing .<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0003]]</b> is raised if the parent of the specified target is no directory.<br /><b>[[XQuery Errors#File Functions Errors (FOFL)|FOFL0008FOFL0000]]</b> is raised if the operation fails for some other reason.<br />
|}
[[Category:XQuery]]