Correctly list files in the public directory.