diff --git a/TGServerService/Program.cs b/TGServerService/Program.cs
index 1fc9a14285..fea0b5ef0e 100644
--- a/TGServerService/Program.cs
+++ b/TGServerService/Program.cs
@@ -53,6 +53,12 @@ namespace TGServerService
}
}
+
+ ///
+ /// Properly unlinks directory if it is a symlink
+ ///
+ /// for the directory in question
+ /// if was a symlink and deleted, otherwise
static bool CheckDeleteSymlinkDir(DirectoryInfo di)
{
if (!di.Attributes.HasFlag(FileAttributes.Directory))