DirectoryInfoDelete Method (Boolean) |
Namespace: Alphaleonis.Win32.Filesystem
Exception | Condition |
---|---|
ArgumentException | The path parameter contains invalid characters, is empty, or contains only white spaces. |
ArgumentNullException | |
DirectoryNotFoundException |
If the DirectoryInfo has no files or 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.