1
0
Fork 0

Graceful fallback in Filesystem::removeDirectory() to php, if process failed.

pull/2985/head
Tristan Lins 2014-05-12 23:12:57 +02:00
parent e707dcd92f
commit 5f86037ff3
1 changed files with 7 additions and 3 deletions

View File

@ -85,10 +85,14 @@ class Filesystem
$result = $this->getProcess()->execute($cmd, $output) === 0;
if ($result) {
// clear stat cache because external processes aren't tracked by the php stat cache
clearstatcache();
return $result && !is_dir($directory);
return !is_dir($directory);
}
return $this->removeDirectoryPhp($directory);
}
/**