You can disable directory browsing from your cPanel control panel using the "Index Manager", you will find this option under "Site Management Tools".
Why would I want to disable directory browsing?
Disabling directory browsing can help secure your files from unwanted visitors. If you don't have an "index" file in your folder then the contents of the folder will be visible to the view, disabling directory browsing prevents that.