Return STATUS_DIRECTORY_NOT_EMPTY when trying to delete a folder that is not empty

This commit is contained in:
Tal Aloni 2017-02-11 01:32:32 +02:00
parent 353460a976
commit bb0cff643a
4 changed files with 9 additions and 1 deletions

View file

@ -100,7 +100,7 @@ namespace SMBServer
}
else if (Directory.Exists(fullPath))
{
Directory.Delete(fullPath, true);
Directory.Delete(fullPath, false);
}
else
{