title: how to copy one wav file from a folder to another in python code? Is it possible?
body: <p>I want to create folders from a folder having wav files of different classes. Here all the files are stored in a folder, the different classes information is saved in filename itself. I am using the following code, for creating the subfolders as class names, My question is how to copy or write that wav file in this new folder. Is it possible?</p>
  <pre><code>all_files = sorted(glob.glob(&quot;E:/dataset/dhwani_aug/*//*/*.wav&quot;))
  
  emotion_id = {
      '01': 'neutral',
      '02': 'angry',
      '03': 'happy',
      '04': 'fear',
      '05': 'sad'
  }
  store_folder = 'E:/Python_On_All_Dataset/emodb/dataset/'
  
  create_folder=0
  for filepath in all_files:
      Emotion=emotion_id[filepath.split('\\')[-1][0:2]]
      if Emotion=='neutral':
          create_folder = store_folder+'/'+Emotion+'/'
      if not os.path.exists(create_folder):
          os.makedirs(create_folder)
          dest_filepath = create_folder+'/'+filepath
  </code></pre>