Help with touch to change file date

Come up with a useful post-processing script? Share it here!

Help with touch to change file date

Postby zapbrannigan99 » March 5th, 2012, 3:33 pm

OK I want to change the dates of the downloaded files to the date they were downloaded on, rather than their original date.

If there anyway to do this when sabnzbd calls unrar to get unrar to ignore the dates of the files in the nzb?

Otherwise, there's the touch option - touch -m "$1" will update the files in the directory to todays date, but the problem is I only want to update the file that was unpacked into that folder, as there will already be files in there. How can you touch just the files that were just unpacked be that one download?

Thanks
zapbrannigan99
Newbie
Newbie
 
Posts: 5
Joined: March 5th, 2012, 3:26 pm

Re: Help with touch to change file date

Postby shypike » March 5th, 2012, 3:37 pm

We have a "secret" setting called "ignore_unrar_dates".
How to use it, is described here: http://wiki.sabnzbd.org/configure-special
User avatar
shypike
Administrator
Administrator
 
Posts: 16549
Joined: January 18th, 2008, 1:49 pm

Re: Help with touch to change file date

Postby zapbrannigan99 » March 5th, 2012, 3:59 pm

YES!!! Thanks :)
zapbrannigan99
Newbie
Newbie
 
Posts: 5
Joined: March 5th, 2012, 3:26 pm


Return to Post-Processing Scripts