1
0
Fork 0

Fix issue preventing cleanup of vendor dir when it is nested in the install path on Windows, fixes #9396

pull/9397/head
Jordi Boggiano 2020-11-02 13:45:34 +01:00
parent feb667e9bd
commit 6cb0aff417
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ abstract class ArchiveDownloader extends FileDownloader
// clean up the target directory, unless it contains the vendor dir, as the vendor dir contains // clean up the target directory, unless it contains the vendor dir, as the vendor dir contains
// the archive to be extracted. This is the case when installing with create-project in the current directory // the archive to be extracted. This is the case when installing with create-project in the current directory
// but in that case we ensure the directory is empty already in ProjectInstaller so no need to empty it here. // but in that case we ensure the directory is empty already in ProjectInstaller so no need to empty it here.
if (false === strpos($this->filesystem->normalizePath($vendorDir), $this->filesystem->normalizePath($path).DIRECTORY_SEPARATOR)) { if (false === strpos($this->filesystem->normalizePath($vendorDir), $this->filesystem->normalizePath($path.DIRECTORY_SEPARATOR))) {
$this->filesystem->emptyDirectory($path); $this->filesystem->emptyDirectory($path);
} }