diff --git a/TGServerService/Program.cs b/TGServerService/Program.cs index 127299c259..44c29e9269 100644 --- a/TGServerService/Program.cs +++ b/TGServerService/Program.cs @@ -30,11 +30,11 @@ namespace TGServerService if (excludeRoot != null) for (var I = 0; I < excludeRoot.Count; ++I) excludeRoot[I] = excludeRoot[I].ToLower(); - if (!di.Attributes.HasFlag(FileAttributes.Directory)) - { //this is probably a symlink - Directory.Delete(di.FullName); - return; - } + if (!di.Attributes.HasFlag(FileAttributes.Directory)) + { //this is probably a symlink + Directory.Delete(di.FullName); + return; + } NormalizeAndDelete(di, excludeRoot); if (!ContentsOnly) {