title: Using Python to create incrementing folder names
body: <p>I am trying to place all files within a directory into it's own individual folder.  When trying to declare the variable 'folders' I enumerate the list of files and try to append the enumerated list number to the end of the folder name, so the folders would look something like...
      FOLDER_1,
      FOLDER_2,
      FOLDER_3,
  where the trailing digit is generated from enumeration of the files in the directory. </p>
  
  <p>However my code below lists them all as 'FOLDER_0' and then hits an overwrite error, my increment doesn't seem to be working, any direction into what I am doing wrong would be much appreciated.</p>
  
  <pre><code>PATH = "C:/Temp/"
  
  def main(): 
      files = [ join(PATH, f) for f in listdir(PATH) if isfile(join(PATH, f)) ]
  
      for i, f in enumerate (files):
          folders = [ PATH+"FOLDER_"+str(i)+"/" for f in files ]
  </code></pre>