Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica > Directories & Directory Operations >

CopyDirectory

CopyDirectory["dir1", "dir2"]
copies the directory dir1 to dir2.
  • dir1 must already exist; dir2 must not.
  • CopyDirectory sets the modification dates for dir2 and for all the files in it to be the same as those for dir1.
  • CopyDirectory returns the full name of the directory it copies to, and $Failed if it cannot complete the copy.
New in 2
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team