Tag DB doesn't change when undoing a renameitem()?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Tag DB doesn't change when undoing a renameitem()?

Post by highend »

I use these settings in a fresh; current x32 beta:

Code: Select all

Configuration | General | Startup & Exit | Save Settings | [x] Save changes to disk immediately
Configuration | General | Startup & Exit | Save Settings | Apply to... | [x] Tags

Configuration | Information | Tags | [x] Copy tags on backup and sync operations
I use this test structure:

Code: Select all

C:\Temp\new\sub1\sub2\PS
C:\Temp\new\sub1\sub2\PowerShell

The PS folder is just for the second test, it is absolutely empty
The PowerShell folder contains a few files and subfolders with files as well
I've tagged two files there (one in the PowerShell folder itself, one in the first subfolder of it)
Now I execute this script:

Code: Select all

moveto "C:\Temp\new", "C:\Temp\new\sub1\sub2\PowerShell", , , 2, 5, 1, 0, 0, 1, 3, 0;
It moves the PowerShell folder up the hierarchy.

The tag db reflects that change immediately and when I undo the operation (button in the toolbar) the PowerShell folder is moved back into its original position and the tag db again reflects that operation just fine.

Now I execute this:

Code: Select all

$newName = renameitem("PS", "C:\Temp\new\sub1\sub2\PowerShell", , "-00001");
This renames the PowerShell folder into PS-00001 and again, the tag db reflects that change just fine.

When I now undo the operation the PS-00001 is renamed back to PowerShell again BUT the tag.db will NOT reflect this change!
This is the state after the undo operation:

Code: Select all

C:\Temp\new\sub1\sub2\PS-00001\!Which PowerShell version on which OS.txt|0|abc|||||||||||||||||
C:\Temp\new\sub1\sub2\PS-00001\#CMDlets\@Homepage [PowerShell gallery].url|0|def|||||||||||||||||
Is this a bug or by design?
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 64917
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Tag DB doesn't change when undoing a renameitem()?

Post by admin »

Bug :bug: confirmed. :tup: But I think the issue was much more general: After renaming a tagged folder, selecting Undo did not update the tags database (not even in memory).

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Tag DB doesn't change when undoing a renameitem()?

Post by highend »

Yeah, it was broken for a normal gui rename operation as well, confirmed fixed for x32 with v27.10.0501 :tup:
One of my scripts helped you out? Please donate via Paypal

Post Reply