Mark0's Forum

Software => TrID File Identifier => Topic started by: Giuseppe on April 10, 2010, 10:30:32 PM

Title: No rename if extension already correct?
Post by: Giuseppe 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?
Title: Re: No rename if extension already correct?
Post by: Mark0 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!