For deleting and moving a directory and its contents, both Directory and DirectoryInfo contain the following methods shown in Table 18.4. Table 18.4. Methods to use for performing common directory operations
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. |