CreateDirectory

CreateDirectory["dir"]

creates a directory with name dir.

CreateDirectory[]

creates a directory in the default area for temporary directories on your computer system.

Details and Options

Examples

open allclose all

Basic Examples  (1)

Create a directory:

Check the presence of the new directory:

Delete the directory:

The directory is no longer there:

Scope  (1)

Create a directory specified as a File object:

Possible Issues  (1)

CreateDirectory using a path name specified by a string does not create a CloudObject when evaluated in the cloud:

There is no cloud object:

Use CloudObject instead when creating directories:

Now the CloudObject directory exists:

Wolfram Research (1991), CreateDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/CreateDirectory.html (updated 2016).

Text

Wolfram Research (1991), CreateDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/CreateDirectory.html (updated 2016).

CMS

Wolfram Language. 1991. "CreateDirectory." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/CreateDirectory.html.

APA

Wolfram Language. (1991). CreateDirectory. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CreateDirectory.html

BibTeX

@misc{reference.wolfram_2024_createdirectory, author="Wolfram Research", title="{CreateDirectory}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/CreateDirectory.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_createdirectory, organization={Wolfram Research}, title={CreateDirectory}, year={2016}, url={https://reference.wolfram.com/language/ref/CreateDirectory.html}, note=[Accessed: 21-November-2024 ]}