I\'m trying to get the list of files in a particular directory and count the number of files in the directory. I always get the following error:
WindowsError
Two things:
The syntax you used works fine, if the directory you look for exists, but there is no directory called '/client_side/.'.
In addition, be careful if using Python 2.x and os.listdir, as the results on windows are different when you use u'/client_side/' and just '/client_side'.