diff --git a/3PA/3P.csproj b/3PA/3P.csproj
index ec489b3b..8c635d45 100644
--- a/3PA/3P.csproj
+++ b/3PA/3P.csproj
@@ -463,7 +463,7 @@
///
private static void UpdateDoneFromVersion(string fromVersion) {
if (!fromVersion.IsHigherVersionThan("1.7.3")) {
- UserCommunication.Notify("Cleaning libraries...");
Utils.DeleteDirectory(Path.Combine(Npp.ConfigDirectory, "Libraries"), true);
}
}
diff --git a/3PA/Lib/Utils.cs b/3PA/Lib/Utils.cs
index 6c2eb8a5..89491154 100644
--- a/3PA/Lib/Utils.cs
+++ b/3PA/Lib/Utils.cs
@@ -28,7 +28,6 @@
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
-using System.Linq;
using System.Linq.Expressions;
using System.Net;
using System.Security.Cryptography;
@@ -37,7 +36,6 @@
using System.Windows.Forms;
using YamuiFramework.Helper;
using YamuiFramework.HtmlRenderer.Core.Core.Entities;
-using _3PA.Lib.Ftp;
using _3PA.MainFeatures;
using _3PA.MainFeatures.Appli;
using _3PA.MainFeatures.FileExplorer;
@@ -183,7 +181,7 @@ public static bool DeleteDirectory(string path, bool recursive) {
try {
if (string.IsNullOrEmpty(path) || !Directory.Exists(path))
return true;
- Directory.Delete(path, true);
+ Directory.Delete(path, recursive);
} catch (Exception e) {
UserCommunication.Notify("Failed to delete the following directory :
" + path.ToHtmlLink() + "