From 178a40bc7803bd04d9b4ce4d2d8c2c89a303db14 Mon Sep 17 00:00:00 2001 From: Mathias Lang Date: Sat, 22 Jun 2024 15:57:59 +0200 Subject: [PATCH] Trivial: Remove a leftover std.file dependency in PackageManager --- source/dub/packagemanager.d | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/dub/packagemanager.d b/source/dub/packagemanager.d index 25c12de28..7ec0df178 100644 --- a/source/dub/packagemanager.d +++ b/source/dub/packagemanager.d @@ -1003,8 +1003,7 @@ symlink_exit: enforce(found, "Cannot remove, package not found: '"~ pack.name ~"', path: " ~ to!string(pack.path)); logDebug("About to delete root folder for package '%s'.", pack.path); - import std.file : rmdirRecurse; - rmdirRecurse(pack.path.toNativeString()); + this.fs.removeDir(pack.path, true); logInfo("Removed", Color.yellow, "%s %s", pack.name.color(Mode.bold), pack.version_); }