Przeglądaj źródła

Fix directory deletion (for real🙂)

Shalvah 4 lat temu
rodzic
commit
29bb385e97
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/Tools/Utils.php

+ 1 - 1
src/Tools/Utils.php

@@ -100,7 +100,7 @@ class Utils
         $adapter = new Local($base ?: getcwd());
         $fs = new Filesystem($adapter);
         $dir = ltrim($dir, '/');
-        $dir = ltrim($dir, $adapter->getPathPrefix());
+        $dir = str_replace($adapter->getPathPrefix(), '', $dir);
         $fs->deleteDir($dir);
     }