1.0.0 Alpha Release #59
1 changed files with 13 additions and 6 deletions
|
@ -732,16 +732,23 @@
|
||||||
$scanner = new DirectoryScanner();
|
$scanner = new DirectoryScanner();
|
||||||
$filesystem = new Filesystem();
|
$filesystem = new Filesystem();
|
||||||
|
|
||||||
/** @var SplFileInfo $item */
|
if($filesystem->exists($version_entry->Location))
|
||||||
/** @noinspection PhpRedundantOptionalArgumentInspection */
|
|
||||||
foreach($scanner($version_entry->Location, true) as $item)
|
|
||||||
{
|
{
|
||||||
if(is_file($item->getPath()))
|
/** @var SplFileInfo $item */
|
||||||
|
/** @noinspection PhpRedundantOptionalArgumentInspection */
|
||||||
|
foreach($scanner($version_entry->Location, true) as $item)
|
||||||
{
|
{
|
||||||
Console::outDebug(sprintf('deleting %s', $item->getPath()));
|
if(is_file($item->getPath()))
|
||||||
$filesystem->remove($item->getPath());
|
{
|
||||||
|
Console::outDebug(sprintf('deleting %s', $item->getPath()));
|
||||||
|
$filesystem->remove($item->getPath());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Console::outWarning(sprintf('warning: package location %s does not exist', $version_entry->Location));
|
||||||
|
}
|
||||||
|
|
||||||
$filesystem->remove($version_entry->Location);
|
$filesystem->remove($version_entry->Location);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue