app/Http/Controllers/Admin/MediaController.php
private function allDiskFiles(string $media_folder, string $subfolders): array
    {
        return $this->scanFolders(WT_DATA_DIR . $media_folder, $subfolders === 'include');
    }
private function allDiskFiles(string $media_folder, string $subfolders): array
    {
        return $this->scanFolders(WT_DATA_DIR . $media_folder, $subfolders === 'include');
    }
private function allDiskFiles ( string $ media_folder , string $ subfolders ) : array { return $ this -> scanFolders ( WT_DATA_DIR . $ media_folder , $ subfolders === 'include' ) ; }
Fetch a list of all files on disk

@param string $media_folder Location of root folder
@param string $subfolders   Include or exclude subfolders

@return string[]
Fetch a list of all files on disk