public function listDir($dir) { $dir = $this->getPathInfo($dir, 'pathname'); return array_diff(scandir($dir) ?: [], ['..', '.']); }