FileSystem
urn:WebWorks-XSLT-Extension-FileSystem
Functions
Appends one file to another file.
Compares the provided checksum with the current checksum.
• string
Combine (string path, string component1 [, string component2, string component3, string component4, string component5, string component6, string component7, string component8, string component9, string component10])
Combines the given component(s) to the file path.
• XPathNodeIterator
CopyDirectoryFiles (string sourceDirectoryPath, string destinationDirectoryPath)
Copies all files from the source directory to the destination directory. Destination files are reported as <FILE> elements. Source files are reported as <Depends> elements for each destination file.
• XPathNodeIterator
CopyFile (string sourcePath, string destinationPath)
Copies the source file to the destination path. Destination files are reported as <FILE> elements. Source files are reported as <Depends> elements for each destination file.
Creates a directory with the given path. If the directory already exists, the method will return false().
Recursively deletes the directory with the given path.
Deletes the file described by path.
Determines if a directory exists at the given path. If a file exists with the given path, this method will return false().
Determine if file or directory 'path' exists.
Determines if a file exists at the given path. If directory exists with the given path, this method will return false().
• bool
FilesEqual (string alphaPath, string betaPath)
Compares the contents of two files to determine if they are equal.
Determines an absolute path given a relative path and a reference path to create the absolute path from. Returns the relative path argument if it is absolute to begin with.
Gets the base name of any path. It handles as separators: '\' and '/'. If the path ends with a separator or it's an empty string then it returns an empty string.
Determines the checksum for the specified file.
Determines the directory prefix of the given path.
Determines the file extension for the given path.
Determines the name of the file with the directory prefix removed.
Determines the name of the file with the directory prefix and extension removed.
• XPathNodeIterator
GetFiles (string path)
Returns an XML node set containing absolute file paths to all files in the specified path. If the path specifies a file, a single file entry will be returned. If the path specifies a directory, all file paths in the directory and their children are returned.
Gets long path name of a specified short path filename.
Returns an XML node set containing RELATIVE file paths to all files in the specified path. If the path specifies a file, a single file entry will be returned. If the path specifies a directory, all file paths in the directory and their children are returned.
Determines the relative path from the absolute anchor path to the absolute destination path.May return an absolute path if no relative path exists.
Gets short path filename from a specified filename.
Gets temporary unique filename path.
Gets path to the user's temporary files directory.
Replaces the current file extension with the provided one.
Makes a valid filename by eliminating the invalid characters from the specified seed filename.
• void
TranslateFileToEncoding (string sourceFilePath, string sourceFileEncodingName, string destinationFilePath, string destinationFileEncodingName)
Translate file to encoding.
Detailed Description
urn:WebWorks-XSLT-Extension-FileSystem
Allow XSL transforms to query and manipulate files and directories. Also handles system path parsing and processing.
Member Function Documentation
Last modified date: 10/14/2020