Fixed failure when running from within phar
This commit is contained in:
@ -211,10 +211,10 @@ class Manifest
|
||||
$it = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($source->path));
|
||||
foreach ($it as $item) {
|
||||
if ($item->isDir()) continue;
|
||||
$items[] = (object)['src'=>$item->getPathname(),'dest'=>null];
|
||||
$items[] = (object)['src'=>realpath($item->getPathname()),'dest'=>$item->getPathname()];
|
||||
}
|
||||
} elseif ($source->type == 'file') {
|
||||
$items[] = (object)['src'=>$source->path,'dest'=>null];
|
||||
$items[] = (object)['src'=>realpath($source->path),'dest'=>$item->getPathname()];
|
||||
} else {
|
||||
log_warn("Unsupported source type: %s", $source->type);
|
||||
}
|
||||
|
Reference in New Issue
Block a user