Fixes DeleteDirectory not deleting root files if ContentsOnly is set

This commit is contained in:
Jordan Brown
2017-10-12 12:30:49 -04:00
committed by GitHub
parent 5c0f867882
commit 7f5f61349f
+1
View File
@@ -57,6 +57,7 @@ namespace TGServerService
if (excludeRoot != null && excludeRoot.Contains(file.Name.ToLower()))
continue;
file.Attributes = FileAttributes.Normal;
file.Delete();
}
}