Merge pull request #558 from ProgerXP/patch-locks-dev

Fixing "Cannot remove ...: Permission denied" in File and bundle:: task
This commit is contained in:
Taylor Otwell 2012-04-19 06:23:42 -07:00
commit 3670423da6
2 changed files with 6 additions and 3 deletions

View File

@ -54,6 +54,7 @@ protected function zipball($url, $bundle, $path)
File::rmdir($work.'zip');
$zip->close();
@unlink($target);
}

View File

@ -273,7 +273,8 @@ public static function cpdir($source, $destination, $delete = false, $options =
}
}
if ($delete) rmdir($source);
unset($items);
if ($delete) @rmdir($source);
return true;
}
@ -306,6 +307,7 @@ public static function rmdir($directory, $preserve = false)
}
}
unset($items);
if ( ! $preserve) @rmdir($directory);
}