lastralab / ABISSMAL

Github repository for ABISSMAL behavioral tracking platform
https://github.com/lastralab/ABISSMAL
Other
3 stars 2 forks source link

[Backups] Videos saved in wrong folder #449

Closed gsvidaurre closed 11 months ago

gsvidaurre commented 11 months ago

Describe the bug Videos recorded after the backup occurs are saved to the folder that holds videos for the next day.

To Reproduce Steps to reproduce the behavior:

  1. Run ABISSMAL with video for 48 hours
  2. Go to the Video folder in the external hard drive
  3. See videos recorded after the Day 1 backup that are saved to the folder for Day 2

Expected behavior All videos recorded on a given day should be moved to a folder with the correct date on the external hard drive

lastralab commented 11 months ago

Added standardization for video files naming: If month integer is lower than 10 it will add a zero '0' before. Example: September = "09" and when backup looks for a string containing today's date it will only move the files older than today's date