in reply to Unable to read files from a directory
Your code is working fine for me
Check your directory permission and the files inside it
The great pleasure in my life is doing what people say you cannot do.