ePublisher Platform XSLT Extensions
 
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().
Exceptions:
OutOfMemoryException
Thrown when a low memory situation occurs.
Parameters:
path
Full pathname of the file.
Returns:
True if it succeeds, false if it fails.
Log existence of directory C:.
<xsl:if test="wwfilesystem:DirectoryExists('C:\\direxists')">
<xsl:variable name = "VarLog" select="wwlog:Message('Directory \'', 'C:\\direxists', '\' exists!')" />
</xsl:if>