In my script I am listing files stored in a directory using as follows:
path ="D:/name/hello/school"
files = os.listdir(path)
Now, when I executed it earlier it worked all fine but now it suddenly it is throwing
Window [Error 3]
Is there an alternate way to list all the files within a directory?
I have also tried os.walk(path)
but it also did not work as I am getting a StopIteration error.