You can easily disable directory listing by opening your cPanel account and navigating to Indexes section:
Once there select the public_html folder and choose No indexing:
You can also upload an empty index.html or index.php file if you don’t want the content to be displayed on your website (while still disabling the list of directories).