Rename folder bug

Things you’d like to miss in the future...
Forum rules
When reporting a bug, please include the following information: your XYplorer version (e.g., v27.90.0047), your Windows version (e.g., Win 11), and your screen scaling percentage (e.g., 125%). We recommend adding your Windows version and screen scaling percentage to your profile or signature. This will make debugging much easier for us.
Post Reply
Posix
Posts: 23
Joined: 17 Aug 2017 14:23

Rename folder bug

Post by Posix »

I accidentally renamed folder (A) to name (B) that already existed in that folder. When i pressed Enter, wild Windows copy dialog appeared. It was the moment I knew I fukd up. I pressed No on first name conflict.
Almost all files moved from (A) to (B). Only few files remained in (A) folder (because i pressed No). So I moved files back to folder (A).

Both folders were git repositories and the problem is .git folder. I dont know which files I should move back to (A). .git folder is black box for me. So it seems i just lost (A) .git folder.
Fortunately (A) was new repository with few commits and if necessary, I can clone and restore (B) repository.

I think XYplorer shouldn't let such rename or should show some dialog just like Windows explorer.

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

Re: Rename folder bug

Post by highend »

Which XY version,
which OS,
which "wild Windows dialog",
how was the rename invoked,
100% reproducible with a fresh XY instance?

Doesn't happen here on my system with the current XY beta,
I get a windows dialog asking me if I want to replace files in
the destination folder, skip them or choose for each file separately
immediately after trying to rename the folder...
One of my scripts helped you out? Please donate via Paypal

Posix
Posts: 23
Joined: 17 Aug 2017 14:23

Re: Rename folder bug

Post by Posix »

XYplorer
  1. Before:
    before.png
    before.png (3.94 KiB) Viewed 1088 times
  2. Select folder A
  3. Press F2
  4. Change name to B
  5. Enter
  6. copy-dialog.png
    copy-dialog.png (8.81 KiB) Viewed 1088 times
  7. In dialog i skip all - i won't replace files
  8. Result (see B.txt which moved to B folder):
    after.png
    after.png (3.63 KiB) Viewed 1088 times

Windows Explorer
  1. Before:
    before.png
    before.png (3.94 KiB) Viewed 1088 times
  2. Press F2
  3. Change name to B
  4. Enter
  5. explorer.png
    explorer.png (20.54 KiB) Viewed 1088 times
  6. I press No and everything is OK
  7. Result:
    before.png
    before.png (3.94 KiB) Viewed 1088 times


Sorry for localized screenshot, I don't have english Windows.
So the problem is .git folder, because i don't know how to fix moved files.


XYplorer: 18.50.0100 (Pro Edition - Lifetime License Pro)
OS: Windows 10, 64-bit (10.0)

Posix
Posts: 23
Joined: 17 Aug 2017 14:23

Re: Rename folder bug

Post by Posix »

Hmm now I see in the dialog is third option to choose files. But when I saw dialog first time after i renamed folder. I clicked in panic on skip button. :(
Anyway i like Windows explorer aproach¨, but can live with current state

Post Reply