diff --git a/modman.php b/modman.php index 857502c..8a93035 100644 --- a/modman.php +++ b/modman.php @@ -1171,8 +1171,9 @@ public function doRemoveResource($sElementPath){ if (is_link($sElementPath) OR $this->isFolderEmpty($sElementPath)){ // workaround for windows to delete read-only flag // which prevents link from being deleted properly - chmod($sElementPath, 0777); - rmdir($sElementPath); + chmod($sElementPath, 0777); + // directory symlinks must be deleted with rmdir on windows + @unlink($sElementPath) or rmdir($sElementPath); } } elseif (is_file($sElementPath)){ // workaround for windows to delete read-only flag