improve work directory cleanup.
This commit is contained in:
parent
f0c273771a
commit
e21d914c1c
|
@ -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.
|
||||||
|
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue