title: TypeError: listdir() takes at most 1 argument (2 given)
body: <p>I'm trying to iterate through 2 folders simultaneously since i want to work on pairs of images in two different location, unfortunately listdir takes only 1 argument so it doesn't allow me to iterate through both like in lists for example. Is there some other way to do this? Thank you</p>
  
  <pre><code>mypath2 = os.path.join('c:\\trainstcolor2')
  images2 = list()
  
  
  mypath = os.path.join('c:\\trainst2')
  images = list()
  
  for item,item2 in os.listdir(mypath,mypath2):
  
     image = cv2.imread(os.path.join(mypath, item))
     image2 = cv2.imread(os.path.join(mypath2, item2))
  
     if image is not None:
  
         images.append(image)
         images2.append(image2)
  </code></pre>