Folder sizes not recalculated after deleting folder

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
elqasar
Posts: 96
Joined: 01 Jun 2016 15:13

Folder sizes not recalculated after deleting folder

Post by elqasar »

In a directory with a large number of folders and files if I click the toolbar button to Show Folder Sizes and then sort the list by Size, deleting individual folders causes a strange display issue sometimes.

After deleting a single folder (Shift+Delete) while the list is sorted by Size:
Sometimes, the sizes for everything is recalculated and displayed correctly.
Sometimes, the sizes for some folders are recalculated but for other folders their Size column in the list becomes blank.
Sometimes, the sizes for all folders becomes blank. It means I have to disable the button Show Folder Sizes and then click on it again to force recalculation of folder sizes.

If I do this test many times in a row I get any of the 3 random results each time.

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

Re: Folder sizes not recalculated after deleting folder

Post by admin »

1) Are you sure you press the "Show Folder Sizes" button and not the "Calculate Folder Sizes" button? The first is permanent, the second temporary.

2) Are you using "Configuration | Tree and List | List | Cache folder sizes"?

elqasar
Posts: 96
Joined: 01 Jun 2016 15:13

Re: Folder sizes not recalculated after deleting folder

Post by elqasar »

1) Yes, I'm sure I'm pressing 'Show Folder Sizes'.
2) No

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

Re: Folder sizes not recalculated after deleting folder

Post by admin »

I tried it about 10 times in a folder with 120 subfolders, and I always get "the sizes for everything is recalculated and displayed correctly."

Does it only happen with Shift+Delete, not with Delete?
Do you press in in Tree or in List? (Well stupid question: Should be List, else you would not see the sibling folders listed)

elqasar
Posts: 96
Joined: 01 Jun 2016 15:13

Re: Folder sizes not recalculated after deleting folder

Post by elqasar »

I tried it again now, about 20 times, sometimes pressing Del and other times pressing Shift+Del while in the list.

Today it only happened once that the folder sizes disappeared. It was one of the times when I used Shift+Del on a single folder.

When the folder sizes disappeared, there was this message in the status bar:
stopped.png
When I delete just 1 folder, I wonder why is it even necessary for XYplorer to recalculate the sizes of the sibling folders.
To see the attached files, you need to log into the forum.

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

Re: Folder sizes not recalculated after deleting folder

Post by admin »

The "stopped" nessage should only come after pressing ESC. Maybe your ESC key has a cough. :)
When I delete just 1 folder, I wonder why is it even necessary for XYplorer to recalculate the sizes of the sibling folders.
The whole directory is re-browsed. All fresh. Indeed it looks as if this could be optimized in this case. But here we are talking about the core of the file manager. Changes here need good thinking. Takes time. I might come up with some improvement later...

elqasar
Posts: 96
Joined: 01 Jun 2016 15:13

Re: Folder sizes not recalculated after deleting folder

Post by elqasar »

I was definitely not pressing Esc at any point.

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

Re: Folder sizes not recalculated after deleting folder

Post by admin »

1) Are Folder View Settings in effect with this folder?
2) Is a folder size calculation still going on when you delete the folder?

elqasar
Posts: 96
Joined: 01 Jun 2016 15:13

Re: Folder sizes not recalculated after deleting folder

Post by elqasar »

Not in the folder I'm testing with now, but in the other pane I have a tab visible which has Folder View Settings in effect. When I originally noticed the problem the other day it was when deleting stuff in the folder that has Folder View Settings in effect.

No, I don't think there is a calculation going on when I do the delete.

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

Re: Folder sizes not recalculated after deleting folder

Post by admin »

3) Is this a folder that is often auto-refreshed caused by other processes?

elqasar
Posts: 96
Joined: 01 Jun 2016 15:13

Re: Folder sizes not recalculated after deleting folder

Post by elqasar »

3) No I don't think so. There is nothing special about these folders. They just have files that I have manually copied in to them over time.

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

Re: Folder sizes not recalculated after deleting folder

Post by admin »

Although I could not reproduce it, I saw a theoretical way for things going wrong the way you saw it. Next beta has an attempted fix.

Post Reply