private function ensuredRemoveDir($dirname) { try { $this->fs->deleteDir($dirname); return; } catch (Error $ex) { } catch (Exception $ex) { } throw new WriteException("Directory {$dirname} could not be removed.", $ex); }