This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

CopyDirectory

CopyDirectory
copies the directory to .
  • must already exist; must not.
  • CopyDirectory sets the modification dates for and for all the files in it to be the same as those for .
  • CopyDirectory returns the full name of the directory it copies to, and $Failed if it cannot complete the copy.
Copy a directory:
List of files in the directory:
Delete the directory:
The directory is no longer there:
Copy a directory:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=
List of files in the directory:
In[4]:=
Click for copyable input
Out[4]=
Delete the directory:
In[5]:=
Click for copyable input
The directory is no longer there:
In[6]:=
Click for copyable input
Out[6]=
New in 2