diff --git a/TGS.Server/Helpers.cs b/TGS.Server/Helpers.cs index 49280d7e5d..cb17f1fdce 100644 --- a/TGS.Server/Helpers.cs +++ b/TGS.Server/Helpers.cs @@ -59,7 +59,7 @@ namespace TGS.Server /// if was a symlink and deleted, otherwise static bool CheckDeleteSymlinkDir(DirectoryInfo di) { - if (!di.Attributes.HasFlag(FileAttributes.Directory)) + if (!di.Attributes.HasFlag(FileAttributes.Directory) || di.Attributes.HasFlag(FileAttributes.ReparsePoint)) { //this is probably a symlink Directory.Delete(di.FullName); return true;