You are not logged in.

#1 2009-05-17 15:52:40

ungoliant
Member
Registered: 2009-05-17
Posts: 39

unrar annoying behaviour.

I've been searching for this on google and the forums, but can't seem to find anyone that has considered or mentioned this before:

unrar seems to extract files and change the new created files to the date of compression. This is very annoying for people that use by-date sorting on their file managers, and expect their files to appear at the end. Is there any known workaround or way to change this?

I'm using UNRAR 3.90 beta 1.

Thanks.

Offline

#2 2009-05-17 15:56:10

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: unrar annoying behaviour.

Use touch on those files.


To know or not to know ...
... the questions remain forever.

Offline

#3 2009-05-17 16:06:59

ungoliant
Member
Registered: 2009-05-17
Posts: 39

Re: unrar annoying behaviour.

Yeah, I know how to use touch. The problem is that if you work with a lot of rar files, and have to do it over and over again, it turns out very annoying, when actually its something that shouldn't be even happening.

I think i'm probably going to need to create a script that runs unrar and after doing it, does touch on the extracted files...

Does anyone know if unrar-gpl solves this issue?

Offline

#4 2009-05-18 14:33:44

ungoliant
Member
Registered: 2009-05-17
Posts: 39

Re: unrar annoying behaviour.

Bump

Offline

#5 2009-05-18 20:51:10

jorpheus
Member
Registered: 2008-11-07
Posts: 98

Re: unrar annoying behaviour.

Perhaps see how 7z behaves?

Offline

#6 2009-05-19 11:35:07

ungoliant
Member
Registered: 2009-05-17
Posts: 39

Re: unrar annoying behaviour.

Just tried it, it behaves the same way sad.
I'll explain why I want this: I have a hard disk I want to use for temporal downloads. I have it mounted in /extra, and since this hard disk fills up very quickly, and I only need those files for 7 days, I want cron to delete any file older than 7 days every day. But if files have wrong timestamp, I can't get this to work.

Also, as I mentioned before, searching in big directories full of files without beeing able to sort by date is very annoying.

Offline

#7 2009-05-19 15:55:40

yngwin
Member
Registered: 2009-05-08
Posts: 67

Re: unrar annoying behaviour.

as a workaround you could unrar stuff into a new, timestamped, directory

Offline

#8 2009-05-19 19:22:33

kumyco
Member
From: somewhere
Registered: 2008-06-23
Posts: 153
Website

Re: unrar annoying behaviour.

create a shellscript, and put it in a directory that appears before unrar in  $PATH ... in the shellscript, track whatever file was unrarred then list the rar file and touch all the files it lists, this way you have the behaviour you want but no issues upgrading unrar

Offline

#9 2009-05-19 22:19:07

jorpheus
Member
Registered: 2008-11-07
Posts: 98

Re: unrar annoying behaviour.

Anyone know what the -f(reshen) switch does?

Offline

Board footer

Powered by FluxBB