Pequeño script de Python para organizar alfabéticamente en carpetas los miles de archivos sueltos de un directorio, agrupándolos según su inicial.
Soy aficionado a los juegos retro. Los cartuchos actuales, como Everdrive o Flashcard, te permiten jugar en tu sistema original mediante ROMs. Muchas veces, cuando descargas paquetes de ROMs, estos vienen desorganizados: miles de archivos en un solo directorio.
❗ Antes de empezar a programar, tenía que crear directorios manualmente y copiar todos los juegos que tuvieran la misma inicial para pegarlos en la carpeta correspondiente, ya que los cartuchos Everdrive no ofrecen una paginación cómoda hasta la fecha.
Con este script, he automatizado el proceso. Ejecútalo con py .\Organizador.py
, indícale el directorio que quieras organizar y te agrupará todos los archivos que encuentre en él en carpetas con la inicial del archivo.
Small Python script to alphabetically organize thousands of loose files in a directory into folders, grouping them by their initial letter.
I am a fan of retro games. Current cartridges, like Everdrive or Flashcard, allow you to play on your original system using ROMs. Often, when you download ROM packages, they come disorganized: thousands of files in a single directory.
❗ Before I started programming, I had to manually create directories and copy all games that had the same initial letter into the corresponding folder, as Everdrive cartridges do not offer comfortable pagination to this day.
With this script, I've automated the process. Run it with py .\Organizador.py
, specify the directory you want to organize, and it will group all the files it finds in it into folders with the initial letter of the file.