1
0
Fork 0

Merge pull request #4441 from gsdevme/hotfix/ensure-the-directory-exists-before

Ensure the bin directory exists before checking empty
pull/4444/head
Jordi Boggiano 2015-09-23 14:36:55 +01:00
commit 1409e32037
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ class LibraryInstaller implements InstallerInterface
} }
// attempt removing the bin dir in case it is left empty // attempt removing the bin dir in case it is left empty
if ($this->filesystem->isDirEmpty($this->binDir)) { if ((is_dir($this->binDir)) && ($this->filesystem->isDirEmpty($this->binDir))) {
@rmdir($this->binDir); @rmdir($this->binDir);
} }
} }