DirectoryInfoDelete Method (Boolean) |
Namespace: Alphaleonis.Win32.Filesystem
If the DirectoryInfo has no files and no subdirectories, this method deletes the DirectoryInfo even if recursive is .
Attempting to delete a DirectoryInfo that is not empty when recursive is false throws an IOException.