skip to main content
FileSystem
 
urn:WebWorks-XSLT-Extension-FileSystem
Functions
bool AppendFileWithFile (string targetPath, string sourcePath)
Appends one file to another file.
bool ChecksumUpToDate (string path, string checksum)
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.
bool CreateDirectory (string path)
Creates a directory with the given path. If the directory already exists, the method will return false().
void DeleteDirectory (string path)
Recursively deletes the directory with the given path.
void DeleteFile (string path)
Deletes the file described by path.
bool DirectoryExists (string path)
Determines if a directory exists at the given path. If a file exists with the given path, this method will return false().
bool Exists (string path)
Determine if file or directory 'path' exists.
bool FileExists (string path)
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.
string GetAbsoluteFrom (string relativePath, string referencePath)
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.
string GetBaseName (string path)
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.
string GetChecksum (string path)
Determines the checksum for the specified file.
string GetDirectoryName (string path)
Determines the directory prefix of the given path.
string GetExtension (string path)
Determines the file extension for the given path.
string GetFileName (string path)
Determines the name of the file with the directory prefix removed.
string GetFileNameWithoutExtension (string path)
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.
string GetLongPathName (string path)
Gets long path name of a specified short path filename.
XPathNodeIterator GetRelativeFiles (string path)
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.
string GetRelativeTo (string path, string anchorPath)
Determines the relative path from the absolute anchor path to the absolute destination path.May return an absolute path if no relative path exists.
string GetShortPathName (string path)
Gets short path filename from a specified filename.
string GetTempFileName ()
Gets temporary unique filename path.
string GetTempPath ()
Gets path to the user's temporary files directory.
string GetWithExtensionReplaced (string path, string extension)
Replaces the current file extension with the provided one.
string MakeValidFileName (string fileNameSeed)
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
Was this helpful?
Last modified date: 10/14/2020