Bug 407043 - Image rename to folder fails on Windows
Summary: Image rename to folder fails on Windows
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-dialog (other bugs)
Version First Reported In: 6.1.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-29 07:21 UTC by Steve Wagner
Modified: 2022-02-01 06:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Wagner 2019-04-29 07:21:44 UTC
SUMMARY
Renaming fails if its destination is a "new" folder.

STEPS TO REPRODUCE
1. Select some images
2. choose rename
3. add "test\[file]" as pattern
4. hit ok

Sidenote: My original goal was it to move images in subdirectories by date on which they are created "[date:"yyyy-MM-dd"]\[file]". But that also did not even work.

OBSERVED RESULT
Error Dialog appears "An error occurred while renaming 11 images.
Do you want to rename these images again or rename these images by overwriting?". By choosing overwriting nothing happens.

EXPECTED RESULT
An subdirectory with name test is created and all images are moved into it with its original name.

SOFTWARE/OS VERSIONS
Windows: Windows 10 Pro 1809

ADDITIONAL INFORMATION
My Images are on a separate internal drive. Creating a folder by hand and moving files into it, are works. So it should not be a rights problem. It also failes with 6.0.0. I also tried if its a \ / problem and put in a / which also did not works.
Comment 1 Maik Qualmann 2019-04-29 18:39:37 UTC
This function is not provided for renaming. We prevent under Linux also the "/", for Windows then also the "\". There is already a wish as a bug report to automatically move images into date-based sub-albums.

Maik
Comment 2 Maik Qualmann 2019-04-29 19:07:07 UTC
Git commit e7d78dd1cb4c26cdc7a6aaac5740e10cf9c4e2cb by Maik Qualmann.
Committed on 29/04/2019 at 19:06.
Pushed by mqualmann into branch 'master'.

fix filtering out backslash in the Advanced Renaming
FIXED-IN: 6.2.0

M  +2    -1    NEWS
M  +1    -0    core/utilities/advancedrename/advancedrenameinput.cpp
M  +9    -3    core/utilities/advancedrename/advancedrenamemanager.cpp

https://invent.kde.org/kde/digikam/commit/e7d78dd1cb4c26cdc7a6aaac5740e10cf9c4e2cb