protected function cleanupTarget() { foreach (new \DirectoryIterator($this->targetDir) as $item) { if (!$item->isDot()) { Fso::delete($item->getPathname()); } } }
protected function delete($path) { Fso::delete($path); }