public function cleanDestinationDirectory()
{
try {
foreach ($this->getDestinationDirectoryIterator() as $inode) {
if ($inode->isDir() === false) {
$this->adapter->unlink($inode->getPathname());
} else {
if (($pathname = $inode->getPathname()) !== $this->destinationDirectory) {
$this->adapter->rmdir($pathname);
}
}
}
} catch (\exception $exception) {
}
return $this;
}