title: sort games in their subfolders
body: <p>Recently I started using Batocera, and I am collecting games. I found on my drive tons of amiga games, which in most cases are in multiple files e.g.</p>
  <pre><code>samurai1.adf
  samurai2.adf
  Battleships.adf
  exile - d1.adz
  exile - d2.adz
  exile - d3.adz
  YO_YOE_1.ADF
  YO_YOE_2.ADF
  Dynablaster.adf
  Superfrog (Disk 1 of 4)[cr CSL].adf
  Superfrog (Disk 2 of 4)[cr CSL].adf
  Superfrog (Disk 3 of 4)[cr CSL].adf
  Superfrog (Disk 4 of 4)[cr CSL].adf
  </code></pre>
  <p>I want to put the files into corresponding subfolders like this</p>
  <pre><code>├──Dynablaster.adf
  ├──samurai
  │  ├──samurai1.adf
  │  └──samurai2.adf
  └──Superfrog
     ├──Superfrog (Disk 1 of 4)[cr CSL].adf
     ├──Superfrog (Disk 2 of 4)[cr CSL].adf
     ├──Superfrog (Disk 3 of 4)[cr CSL].adf
     └──Superfrog (Disk 4 of 4)[cr CSL].adf
  </code></pre>
  <p>But obviously I don't want to do this by sorting them manually. The files are different in just one number. Sometimes the game has just one file, and then I would love to leave this game. I tried to google a script, but I could not find one. Any help would be appreciated.</p>