Chmod 666 creates these permissions on a directory: drw-rw-rw-
The bit that is switched off, often abbreviated “x”, is the so-called “enter” bit. You have closed entry to “user/owner”, to “group” and to “others”; i.e. to the “world”. So it is behaving as you directed in your chmod command. Try 777. Here’s a table for other options: Changing Ownership with chown and Permissions with chmod
PS the contents are there – you have simply made them non-viewable.