|
@@ -77,7 +77,9 @@ abstract class VcsDownloader implements DownloaderInterface
|
|
|
public function remove(PackageInterface $package, $path)
|
|
|
{
|
|
|
$this->enforceCleanDirectory($path);
|
|
|
- $this->filesystem->removeDirectory($path);
|
|
|
+ if (!$this->filesystem->removeDirectory($path)) {
|
|
|
+ throw new \RuntimeException('Could not completely delete '.$path.', aborting.');
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|