title: Error while using listdir in Python
body: <p>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:</p>
  
  <pre><code>WindowsError: [Error 3] The system cannot find the path specified: '/client_side/*.*'
  </code></pre>
  
  <p>My code is:</p>
  
  <pre><code>print len([name for name in os.listdir('/client_side/') if os.path.isfile(name)])
  </code></pre>
  
  <p>I followed the code example given <a href="https://stackoverflow.com/questions/2632205/count-the-number-of-files-in-a-directory-using-python">here</a>.</p>
  
  <p>I am running the Python script on Pyscripter and the directory /client_side/ do exists. My python code is in the root folder and has a sub-folder called "client_side". Can someone help me out on this?</p>