Merge pull request #240 from tgstation/Cyberboss-patch-1

Fixes DeleteDirectory not deleting root files if ContentsOnly is set
This commit is contained in:
Jordan Brown
2017-10-12 13:02:11 -04:00
committed by GitHub
+1
View File
@@ -57,6 +57,7 @@ namespace TGServerService
if (excludeRoot != null && excludeRoot.Contains(file.Name.ToLower()))
continue;
file.Attributes = FileAttributes.Normal;
file.Delete();
}
}