improve work directory cleanup.

This commit is contained in:
Taylor Otwell 2012-02-02 16:52:47 -06:00
parent f0c273771a
commit e21d914c1c
2 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,8 @@ protected function zipball($bundle, $url)
$latest = File::latest(dirname($target)); $latest = File::latest(dirname($target));
@chmod($latest->getRealPath(), 0777);
// Once we have the latest modified directory, we should be // Once we have the latest modified directory, we should be
// able to move its contents over into the bundles folder // able to move its contents over into the bundles folder
// so the bundle will be usable by the develoepr. // so the bundle will be usable by the develoepr.

View File

@ -222,7 +222,7 @@ public static function cpdir($source, $destination, $delete = false, $options =
{ {
$path = $item->getRealPath(); $path = $item->getRealPath();
static::cpdir($path, $location); static::cpdir($path, $location, $delete, $options);
if ($delete) @rmdir($item->getRealPath()); if ($delete) @rmdir($item->getRealPath());
} }