Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Ensure that a directory exists, no matter what
ResourceFunction["EnsureDirectory"][dir] creates a directory dir regardless of existing files and directories. |
Create a new subdirectory in your current working directory:
In[1]:= |
Out[1]= |
If a file is in the way, it is moved into the new directory:
In[2]:= |
In[3]:= |
Out[3]= |
In[4]:= |
Out[4]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License