Some servers have a very strict web server configuration, where directory listing is not allowed. If you have no access to any configuration you that does not matter, you can simply add an .htaccess file into your directory you wish to have directory listing and write the following line into it.

Options +Indexes

That’s it.