From 7f5f61349f25162b6ab7b260aa33873ffe8d7ba4 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Thu, 12 Oct 2017 12:30:49 -0400 Subject: [PATCH] Fixes DeleteDirectory not deleting root files if ContentsOnly is set --- TGServerService/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/TGServerService/Program.cs b/TGServerService/Program.cs index d4822ea533..ef6ab4bfc1 100644 --- a/TGServerService/Program.cs +++ b/TGServerService/Program.cs @@ -57,6 +57,7 @@ namespace TGServerService if (excludeRoot != null && excludeRoot.Contains(file.Name.ToLower())) continue; file.Attributes = FileAttributes.Normal; + file.Delete(); } }