2023-07-01 12:35:33 +02:00
|
|
|
|
# Devine le rangement
|
2023-07-01 12:33:47 +02:00
|
|
|
|
|
2023-07-01 12:35:33 +02:00
|
|
|
|
script qui devine comment renommer des fichiers selon un pattern de date
|
|
|
|
|
trouve des infos exif et prend la plus ancienne pour renseigner le nom de fichier.
|
|
|
|
|
Inspiré des travaux de Karl Voit et de ses libs python GuessFileName, append2name, move2archive.
|
|
|
|
|
|
2023-07-01 12:59:08 +02:00
|
|
|
|
Ce script s'utilise selon la méthode de rangement détaillée ici:
|
|
|
|
|
https://www.cipherbliss.com/organiser-ses-fichiers-avec-des-tags-avec-filetags
|
|
|
|
|
mais ce n'est pas encore prêt à être utilisé en production.
|
|
|
|
|
|
|
|
|
|
|
2023-07-01 12:35:33 +02:00
|
|
|
|
# lancement de renommage
|
|
|
|
|
`devine mon_fichier.jpg mon_autre_fichier.pdf`
|
|
|
|
|
|
|
|
|
|
✅
|
|
|
|
|
➡️
|
|
|
|
|
🎉
|
|
|
|
|
|
|
|
|
|
## options
|
|
|
|
|
* -n , dry-run, ne pas renommer
|
2023-07-01 12:59:08 +02:00
|
|
|
|
* --photos-folder, spécifie un dossier pour les photos
|
|
|
|
|
|
|
|
|
|
# English
|
|
|
|
|
## This is a work in progress
|
|
|
|
|
|
|
|
|
|
"npm start" gives you a demo of what Rangement can do, but this is not a production ready package yet.
|
|
|
|
|
|
2023-07-04 12:08:05 +02:00
|
|
|
|
# done
|
|
|
|
|
|
|
|
|
|
* Handle verbosity levels in logs
|
|
|
|
|
- log.trace(msg)
|
|
|
|
|
- log.debug(msg)
|
|
|
|
|
- log.info(msg)
|
|
|
|
|
- log.warn(msg)
|
|
|
|
|
- log.error(msg)
|
|
|
|
|
|
|
|
|
|
|
2023-07-01 12:59:08 +02:00
|
|
|
|
# Roadmap
|
2023-07-04 12:08:05 +02:00
|
|
|
|
* Internationalisation of console texts
|
2023-07-01 12:59:08 +02:00
|
|
|
|
* Proper testing
|
2023-07-04 15:56:15 +02:00
|
|
|
|
* Template configuration for auto dispatching of files after rename
|
2023-07-01 12:59:08 +02:00
|
|
|
|
* Handle a configuration file
|
2023-07-04 12:08:05 +02:00
|
|
|
|
- * create config file if needed
|
2023-07-01 12:59:08 +02:00
|
|
|
|
* batch rename like the python pip script "guessfilename"
|
|
|
|
|
* revert renaming actions
|
2023-07-04 12:08:05 +02:00
|
|
|
|
- * Log renaming actions
|