# Function Reference

# _WinAPI_PathIsDirectory

Verifies that a path is a valid directory

#include <WinAPIFiles.au3>
_WinAPI_PathIsDirectory ( $sFilePath )

## Parameters

$sFilePath | The path to verify.

## Return Value

True: | $FILE_ATTRIBUTE_DIRECTORY if the path is a valid directory.
False: | is not a valid directory.

## See Also

Search PathIsDirectory in MSDN Library.

## Example

    #include <WinAPIFiles.au3>

    ConsoleWrite(@ScriptDir & ' exists : ' & _WinAPI_PathIsDirectory(@ScriptDir) & @CRLF)