CopyDirectory
CopyDirectory["dir1","dir2"]
copies the directory dir1 to dir2.
Details
- dir1 must already exist; dir2 must not.
- CopyDirectory copies all the files in dir1 to dir2.
- 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.
- Directories can be specified either using "path" or File["path"].
Examples
open allclose allBasic Examples (1)
Scope (1)
Copy a directory specified as a File object::
Wolfram Research (1991), CopyDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/CopyDirectory.html (updated 2016).
Text
Wolfram Research (1991), CopyDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/CopyDirectory.html (updated 2016).
CMS
Wolfram Language. 1991. "CopyDirectory." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/CopyDirectory.html.
APA
Wolfram Language. (1991). CopyDirectory. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CopyDirectory.html