Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions modman.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down