Author Topic: No rename if extension already correct?  (Read 8286 times)

Giuseppe

  • Guest
No rename if extension already correct?
« on: April 10, 2010, 10:30:32 PM »
Hello. 

When I run with the -ae switch, trid correctly renames files according to their content.  However, if one is using a recursive script, there's a chance that trid might encounter a file that already has the correct extension.  In this case I wind up with something like goo.jpg.jpg.  Is there a way for trid to check the existing extension and if it is the same as the extension that trid is about to apply, do nothing?

Am I missing a switch or might this be an enhancement request?

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2743
    • Mark0's Home Page
Re: No rename if extension already correct?
« Reply #1 on: April 10, 2010, 10:35:29 PM »
Hi!

You are right: at this time it works exactly like that, and that's by design, to preserve the original extension, and not loose "any info" about the file, so to speak.

But I had more than a request to implement also a simple extension change (if needed), so it will definitely be implemented in a next release, with a different switch.

Thanks for the feedback,
Bye!