public function listChildren($path) { $filesystemPath = $this->getFilesystemPath($path); if (!is_dir($filesystemPath)) { return new FilesystemResourceCollection(); } return $this->iteratorToCollection($this->getDirectoryIterator($filesystemPath)); }