Help with touch to change file date

Come up with a useful post-processing script? Share it here!
Post Reply
zapbrannigan99
Newbie
Newbie
Posts: 6
Joined: March 5th, 2012, 2:26 pm

Help with touch to change file date

Post by zapbrannigan99 »

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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Help with touch to change file date

Post by shypike »

We have a "secret" setting called "ignore_unrar_dates".
How to use it, is described here: http://wiki.sabnzbd.org/configure-special
zapbrannigan99
Newbie
Newbie
Posts: 6
Joined: March 5th, 2012, 2:26 pm

Re: Help with touch to change file date

Post by zapbrannigan99 »

YES!!! Thanks :)
Post Reply