Changes

Jump to navigation Jump to search
294 bytes removed ,  21:17, 22 April 2011
no edit summary
|-
| valign='top' | '''Summary'''
|This function returns Returns an <code>xs:boolean</code> indicating whether a file or directory specified by <code>$path</code> exists in the file system.<br />
|}
|-
| valign='top' | '''Summary'''
|This function returns Returns an <code>xs:boolean</code> indicating whether the argument <code>$path</code> points to an existing directory.<br />
|}
|-
| valign='top' | '''Summary'''
|This function returns Returns an <code>xs:boolean</code> indicating whether the argument <code>$path</code> points to an existing file.<br />
|}
|-
| valign='top' | '''Summary'''
|This function retrieves Retrieves the timestamp of the last modification of the file or directory specified by <code>$path</code>.<br />
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|This function returns Returns the size, in bytes, of the file specified by <code>$path</code>.<br />
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|This function returns 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' | '''Summary'''
|This function returns Returns the parent directory of the path specified by <code>$path</code>, which is the component before the last directory separator.<br />
|}
|-
| valign='top' | '''Summary'''
|This function transforms Transforms the <code>$path</code> argument to its native representation on the operating system.<br />
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|This function transforms Transforms the <code>$path</code> argument to an absolute operating system path.<br />
|}
|-
| valign='top' | '''Summary'''
|This function transforms Transforms the path specified by <code>$path</code> into a URI with the <code>file://</code> scheme.<br />
|}
|-
| valign='top' | '''Summary'''
|This function lists Lists all files and directories found in the specified <code>$directory</code>. The returned paths are relative to the provided path.<br />The optional parameter <code>$recursive</code> specifies whether the sub-directories are to be recursed as well.<br />The optional parameter <code>$pattern</code> defines a file name pattern in the [http://en.wikipedia.org/wiki/Glob_(programming) 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>,</code>).<br />
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|This function recursively Recursively creates the directories specified by <code>$directory</code>.<br />
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|This function recursively Recursively deletes a file or directory specified by <code>$path</code>.<br />
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|This function reads Reads the textual contents of the file specified by <code>$path</code> and returns it as a <code>xs:string</code>.<br />The optional parameter <code>$encoding</code> defines the encoding of the file.<br />
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|This function reads Reads the binary content of the file specified by <code>$path</code> and returns as a <code>xs:base64Binary</code>.<br />
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|This function writes Writes a sequence of <code>$items</code> to a file specified by <code>$path</code>. If the specified file already exists, it will be overwritten.<br />The optional argument <code>$params</code> is used to set the serialization parameters (see [[Serialization]] for more details).<br />
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|This function writes Writes a sequence of <code>xs:basex64Binary</code> <code>$items</code> to a file specified by <code>$path</code>. If the specified file already exists, it will be overwritten.<br />
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|This function appends Appends a sequence of <code>$items</code> to a file specified by <code>$path</code>. If the specified file does not exists, a new file is created.<br />
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|This function appends Appends a sequence of <code>xs:basex64Binary</code> <code>$items</code> to a file specified by <code>$path</code>. If the specified file does not exists, a new file is created.<br />
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|This function copies Copies a file specified by <code>$source</code> to the file or directory specified by <code>$target</code>. If the target represents an existing file, it will be overwritten. No operation will be performed if the source and target path are equal.<br />
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|This function moves Moves or renames the file or directory specified by <code>$source</code> to the path specified by <code>$target</code>. No operation will be performed if the source and target path are equal.<br />
|-
| valign='top' | '''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu