|
@@ -126,7 +126,7 @@ class LibraryInstaller implements InstallerInterface
|
|
$downloadPath = $this->getPackageBasePath($package);
|
|
$downloadPath = $this->getPackageBasePath($package);
|
|
if (strpos($package->getName(), '/')) {
|
|
if (strpos($package->getName(), '/')) {
|
|
$packageVendorDir = dirname($downloadPath);
|
|
$packageVendorDir = dirname($downloadPath);
|
|
- if (is_dir($packageVendorDir) && !$this->filesystem->realpathGlob($packageVendorDir.'/*')) {
|
|
|
|
|
|
+ if (is_dir($packageVendorDir) && $this->filesystem->isDirEmpty($packageVendorDir)) {
|
|
@rmdir($packageVendorDir);
|
|
@rmdir($packageVendorDir);
|
|
}
|
|
}
|
|
}
|
|
}
|