1.6.4 - batch rename inadvertently hiding files

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
ElAlastair
Posts: 6
Joined: Sat Jul 15, 2023 3:09 pm

1.6.4 - batch rename inadvertently hiding files

Post by ElAlastair »

Subject: 1.6.4 - batch rename inadvertently hiding files

XnView: MP 1.6.4 - 64 bit
OS: macOS 12.7.2 - 64bit

When performing a batch rename according to a template, a file can be renamed to blank (e.g. ".jpg") and thus hidden by the OS if the template data is unavailable.

Effect: Files are inadvertently hidden from XnView MP and the user may think they have been deleted.

To reproduce:
1. Find an image with no EXIF data
2. Batch rename with template "{EXIF:Date Taken [Y.m.d_H.M.S]}"
3. File will be renamed to ".jpg" and hidden by the OS so disappears from XnView MP

Actual behaviour (bug): File will be renamed to ".jpg" and hidden by the OS so disappears from XnView MP. If a file with that name already exists, it is renamed to "tmp-xnview-0-{ original file name }.jpg".

Expected behaviour: It would be best if the file was not renamed if the template data is unavailable - or at least not renamed to a hidden file.

I don't really know if this qualifies as a bug, but when I was batch renaming a large number of files with template "{EXIF:Date Taken [Y.m.d_H.M.S]}", one was missing EXIF data and because it was renamed to a hidden file, I couldn't find it for ages and thought it had been deleted.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.6.4 - batch rename inadvertently hiding files

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.6.4 - batch rename inadvertently hiding files

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.6.5. Please check and confirm the bug fix here.
Pierre.
ElAlastair
Posts: 6
Joined: Sat Jul 15, 2023 3:09 pm

Re: 1.6.4 - batch rename inadvertently hiding files

Post by ElAlastair »

Seems good, thanks. :)
Post Reply