For deleting and moving a directory and its contents, both Directory and DirectoryInfo contain the following methods shown in Table 18.4.
|Copying a directory||No method||No method|
|Moving a directory||MoveTo(string destination_path)||Move(string source_path, string destination_path)|
|Deleting a directory||Delete()||Delete(string path)|
Note that there is no method for copying a whole directory and its contents. You will have to perform manual copying of each file within.