Powertoys: PowerRename subfolder renaming does not work if parent gets renamed

Created on 9 Nov 2019  路  7Comments  路  Source: microsoft/PowerToys

Environment

Windows build number: 17763.805
PowerToys version: 0.13.0
PowerToy module for which you are reporting the bug (if applicable): PowerRename

Steps to reproduce

Given the following folder structure:

|- 2019-11-07 - not matched
|- 2019-11-08 Somename
|-- 2019-11-09 Somename with details

When I want to perform a renaming with the following regex (see visualized: https://regex101.com/r/fLh5T2/1 ) the subfolder will not get renamed since its path changed.
Search: (\d+-\d+-\d+) ([^-]+)
Replace: $1 - $2

Expected behavior

I expect that the path gets updated automatically since the parent folder was renamed as part of the same renaming run. As a result both the parent and child directory get renamed.

Actual behavior

Error message appears since the path of the folder to be changed switched and the tool does not find the old one.

Screenshots

I think the above describes the issue already quite clear.

Hope everything is clear. If I did something wrong or you need additional information please tell me

Product-PowerRename Resolution-Fix-Committed

All 7 comments

Thanks for reporting this. I'm working on a fix.

Fix is in PR

Fix committed

How often you you update the releases or release patches?

How often you you update the releases or release patches?

Goal is every month. Could do more often once we get a MSIX / store build as well as then stuff will auto update

Thanks. So you close the issue when the release is done?

@dominik-ba
yes, we mark "resolved" when the fix is merged into master, and we close the issue when a new release, that contains the fix, is available.

Was this page helpful?
0 / 5 - 0 ratings