• 0 Posts
  • 5 Comments
Joined 2 months ago
cake
Cake day: November 22nd, 2025

help-circle
  • I’m sure there is a great bash option but my bash is rubbish.

    A quick python script would work.

    From the datetime module you could use fromisoformat() method to get the date then use the strftime() to get your Year-month-day format. All this after reading the directories contents with the os.listdir() or os.walk() loops. You could parse the filenames for IMG/VID using if "VID" in file_name logic. You could strip the date from the file_name before using datetime with string slicing. Lastly you can use the os.rename() method to rename the file.

    These steps are a bit out of order. But the ingredients are there. With a bit of search engine magic you should be able to work up a script. I would set up a testing folder and test it well before using your script on things you don’t have a back up of.



  • When I was a much younger i worked masonry as a hod carrier. Moving mud, brick, block and stone. Often first on the site and last to leave. Lots of prep and cleanup. I worked really fucking hard.

    One day while at lunch I fell asleep in the back of my truck. Woke up around quitting time. Boss man just let me sleep. Paid me for it too! All cleanup was done.

    One of the best construction gigs I ever had. Never before and never since had I been as valued for my hard work like I was there. Good pay and great bonuses, time off and respect.

    Built many multimillion dollar houses during my time there. Still yearn for the feeling of being on the top of 30 feet of scaffolding on a brisk summer morning talking to old Joe.