Did you change the permissions of the directory itself?
What does "ls -ld <directory-name>" show. Even if you had used "chmod 000 directory", you will be able to use
"chmod 766 <directory-name>" to undo what you did. If you are the owner of the directory, you will be able to use "chmod" on it to restore its permissions.
demonstration:
Code:
mkdir testdir2
mkdir: cannot create directory `testdir2': File exists
jschiwal@hpamd64:~> touch testdir2/testfile1
jschiwal@hpamd64:~> touch testdir2/testfile2
jschiwal@hpamd64:~> touch testdir2/testfile3
jschiwal@hpamd64:~> chmod 000 testdir2
jschiwal@hpamd64:~> ls testdir2
ls: cannot open directory testdir2: Permission denied
jschiwal@hpamd64:~> ls -ld testdir2
d--------- 2 jschiwal jschiwal 144 2007-04-03 07:39 testdir2
jschiwal@hpamd64:~> chmod 766 testdir2
jschiwal@hpamd64:~> ls -l testdir2
total 0
-rw------- 1 jschiwal jschiwal 0 2007-04-03 07:40 testfile1
-rw------- 1 jschiwal jschiwal 0 2007-04-03 07:40 testfile2
-rw------- 1 jschiwal jschiwal 0 2007-04-03 07:40 testfile3