skip to main content
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().
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 file C:.
<xsl:if test="wwfilesystem:DirectoryExists('C:\\fileexists')">
 <xsl:variable name = "VarLog" select="wwlog:Message('Directory \'', 'C:\\fileexists', '\' exists!')" />
</xsl:if>
Was this helpful?
Last modified date: 10/14/2020