fmang / opustags

Ogg Opus tags editor
BSD 3-Clause "New" or "Revised" License
82 stars 11 forks source link

File timestamps are modified when no tags were removed #57

Closed Zapeth closed 2 years ago

Zapeth commented 2 years ago

Using a tagname that doesn't exist when deleting a tag, or trying to delete a tag twice doesn't modify the file contents, but it changes the file timestamps.

It would be better if opustags could check whether any tag changes would be made, and only change the file timestamps if thats the case.

fmang commented 2 years ago

Your idea makes sense, but I’m not sure it’s worth the complexity. Besides, most Unix tools would change the timestamp under these circumstances. See sed -i, or any text editor: even when unchanged, the file is rewritten.