## page was renamed from DevCenter/Documentation/ExtensionObjects/FileSystem = FileSystem = {{{#!rst Purpose: Allow XSL transforms to query and manipulate files and directories. Also handles system path parsing and processing. Namespace: urn:WebWorks-XSLT-Extension-FileSystem Prefix: wwfilesystem Methods: Exists(string path): Determine if a file or directory exists at the given path. Returns: Boolean. Example: Create directory ``C:\exists`` if it does not exist. :: DirectoryExists(string path): Determine if a directory exists at the given path. If a file exists with the given path, this method will return ``false()``. Returns: Boolean. Example: Log existence of directory ``C:\direxists``. :: FileExists(string path): Determine if a file exists at the given path. If directory exists with the given path, this method will return ``false()``. Returns: Boolean. Example: Log existence of file ``C:\fileexists``. :: CreateDirectory(string path): Creates a directory with the given path. If the directory already exists, the method will return ``false()``. Returns: Boolean. Example: Create directory ``C:\exists`` if it does not exist. :: DeleteDirectory(string path): Delete the directory with the given path. Returns: Nothing. Example: Delete the directory ``C:\deleteme``. :: DeleteFile(string path): xx Returns: Nothing. Example: xx GetFiles(string path): xx Returns: xx Example: xx GetRelativeFiles(string path): xx Returns: xx Example: xx CopyDirectoryFiles(string sourceDirectoryPath, string destinationDirectoryPath): xx Returns: xx Example: xx CopyFile(string sourcePath, string destinationPath): xx Returns: xx Example: xx FilesEqual(string alphaPath, string betaPath): xx Returns: Boolean. Example: xx AppendFileWithFile(string targetPath, string sourcePath): Appends the contents of the file located at the sourcePath to the file located at the targetPath. Returns: Nothing. Example: Append the contents of "C:\\File\Sample\Doc.txt" to "C:\\Output\All\Content.txt". :: C:\\File\Sample\Doc.txt C:\\Output\All\Content.txt GetDirectoryName(string path): xx Returns: xx Example: xx GetFileName(string path): xx Returns: xx Example: xx GetExtension(string path): xx Returns: xx Example: xx GetFileNameWithoutExtension(string path): xx Returns: xx Example: xx GetWithExtensionReplaced(string path, string extension): xx Returns: xx Example: xx Combine(string path, string component1, *string component2*, *string component3*, *string component4*, *string component5*, *string component6*): xx Returns: xx Example: xx GetChecksum(string path): xx Returns: xx Example: xx ChecksumUpToDate(string path, string checksum): xx Returns: xx Example: xx GetRelativeTo(string path, string anchorPath): xx Returns: xx Example: xx TranslateFileToEncoding(string sourceFilePath, string sourceFileEncodingName, string destinationFilePath, string destinationFileEncodingName): xx Returns: xx Example: xx }}}