DirectoryQ
DirectoryQ["name"]
gives True if the directory with the specified name exists, and gives False otherwise.
Details
- In DirectoryQ["name"], name is interpreted relative to your current directory.
- DirectoryQ[File["name"]] is also supported
Examples
open allclose all
Wolfram Research (2008), DirectoryQ, Wolfram Language function, https://reference.wolfram.com/language/ref/DirectoryQ.html (updated 2016).
Text
Wolfram Research (2008), DirectoryQ, Wolfram Language function, https://reference.wolfram.com/language/ref/DirectoryQ.html (updated 2016).
CMS
Wolfram Language. 2008. "DirectoryQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/DirectoryQ.html.
APA
Wolfram Language. (2008). DirectoryQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DirectoryQ.html