Seems as if you're using the wrong directory... I think the Books
folder is in the same directory as your script?
Then use only opendir('Books')
which is a relative path to the directory.
When you use /Books
you use the Books
folder located in the root directory of your filesystem. (this is called an absolute path)