void xtd::io::directory_info::move_to | ( | const xtd::string & | dest_dir_name | ) |
Moves a DirectoryInfo instance and its contents to a new path.
dest_dir_name | The name and path to which to move this directory. The destination cannot be another disk volume or a directory with the identical name. It can be an existing directory to which you want to add this directory as a subdirectory. |
xtd::io::directory_not_found_exception | The specified path is invalid, such as being on an unmapped drive. |
xtd::io::io_exception | The directory is not empty. -or- The directory is the application's current working directory. -or- There is an open handle on the directory. |
xtd::security::security_exception | The caller does not have code access permission to create the directory. |