Jarves\Controller\Admin\FileController::getFiles PHP Method

getFiles() protected method

Returns a list of files for a folder.
protected getFiles ( string $path ) : array | null
$path string
return array | null
    protected function getFiles($path)
    {
        if (!$this->getFile($path)) {
            return null;
        }
        //todo, create new option 'show hidden files' in user settings and depend on that
        $files = $this->webFilesystem->getFiles($path);
        return $this->prepareFiles($files);
    }