flac2mp3 icon indicating copy to clipboard operation
flac2mp3 copied to clipboard

Run only if files have been modified

Open kosli opened this issue 8 years ago • 0 comments

As i am running the script in a cron hourly job and the directory has 30k files, it takes a while. I made a simple solution for my bash wrapper script:

  • create a timestamp file right before starting flac2mp3
  • use find -newer on each run to check if any files have been modified since the last run.

Another option would be to let flac2mp3 work with timestamps:

  • set the modified time on the files in the target directory to the same time as the source file
  • only do any work on a file if the timestamps from source and target are different (checked file by file)

So if somebody runs into the same "problem" ....or if you would like to give the code some work ;-)

kosli avatar Jan 20 '17 16:01 kosli