DirectoryQ

WMA link


DirectoryQ["name"]

returns True if the directory called name exists and False otherwise.

DirectoryName
FileNameDepth