Calculate folder sizes refresh.

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
Twisten
Posts: 204
Joined: 27 Apr 2008 10:30

Calculate folder sizes refresh.

Post by Twisten »

Using XYplorer v10.80.0000 on win XP 32bit sp3.

The situation:
I have a folder with two or more sub folders containing files;
I search the folder for '*', select the files, click back, paste the files from the sub folders in the original folder;
Now I select the sub folders in the list and press shift+f5 (to make sure no files were left because of overlaps in file names etc..).

The bug is right at that point, the folder sizes appear and vanish, every time in this situation I have to press shift+f5 twice for the folder sizes to remain displayed.

eil
Posts: 1933
Joined: 13 Jan 2011 19:44

Re: Calculate folder sizes refresh.

Post by eil »

what version are you using?
i tried it in 10.70.0212(my main) and it happened. then i tried last beta(clean/test run) and all works fine. it either has something to do with settings, or was fixed in one of never versions.
Win 7 SP1 x64 100% 1366x768|1900x1080

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

Re: Calculate folder sizes refresh.

Post by admin »

shift+f5 is temporary. it's not meant to stay.

Twisten
Posts: 204
Joined: 27 Apr 2008 10:30

Re: Calculate folder sizes refresh.

Post by Twisten »

eil wrote:what version are you using?
i tried it in 10.70.0212(my main) and it happened. then i tried last beta(clean/test run) and all works fine. it either has something to do with settings, or was fixed in one of never versions.
I'm using v10.80.0000 .
admin wrote:shift+f5 is temporary. it's not meant to stay.
No argument there, but I haven't taken any action to cause it to vanish:
I pasted the files, selected the folders, and pressed shift+f5, the sizes show and vanish instantly.
If I press shift+f5 again, then the sizes stay as expected (until an action is taken).

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

Re: Calculate folder sizes refresh.

Post by admin »

Twisten wrote:
admin wrote:shift+f5 is temporary. it's not meant to stay.
No argument there, but I haven't taken any action to cause it to vanish:
I pasted the files, selected the folders, and pressed shift+f5, the sizes show and vanish instantly.
If I press shift+f5 again, then the sizes stay as expected (until an action is taken).
OK, that's probably some delayed change notification by Windows, where upon XY duly refreshes the list and the folder sizes are gone.

Twisten
Posts: 204
Joined: 27 Apr 2008 10:30

Re: Calculate folder sizes refresh.

Post by Twisten »

admin wrote: OK, that's probably some delayed change notification by Windows, where upon XY duly refreshes the list and the folder sizes are gone.
That sounds plausible, however if I follow all the steps and wait before pressing shift+f5 the first time, even close to a minute, it still happens.
This seem to imply that the actual trigger is the size calculation.
I think it has something to do with XYplorer checking if the 'Accessed' and 'Modified' values for those folders need updating only after calculating the sizes and seeing they need updating (considering they were just accessed and modified by the file move operation) it updates them and discards the sizes.

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

Re: Calculate folder sizes refresh.

Post by admin »

Sorry for the delay. I now can confirm that this is a bug. The causes are still mysterious to me, I'm working on it now...

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

Re: Calculate folder sizes refresh.

Post by admin »

I'm testing this on XP SP3 and Win7/64*:

Apparently the modified date for folders listed in the file list is updated only when items are added to the folders, but not when items are removed from the folders (removed by intra-volume moving, not by deleting). The modified date for folders is also updated whenever the folders are browsed. (Irrespective of Shell vs Custom Copy, or foregound vs background).

This combination (and I'm not sure who to blame for this, NTFS or Windows?) accounts for the effects you see. I'm not sure yet if and how to handle this. Luckily it's not very important.

* (Note: on Win7/64 it seems to be half-fixed -- the modified date for folders is updated the first time items are removed, but not any subsequent time; the "Calculate folder sizes refresh" can be reproduced here as well, but only rarely and unpredictably).

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

Re: Calculate folder sizes refresh.

Post by admin »

I think I just fixed it. :)

Twisten
Posts: 204
Joined: 27 Apr 2008 10:30

Re: Calculate folder sizes refresh.

Post by Twisten »

admin wrote:I think I just fixed it. :)
Cool :D

Twisten
Posts: 204
Joined: 27 Apr 2008 10:30

Re: Calculate folder sizes refresh.

Post by Twisten »

Mmmm,
"This refresh is now suppressed when it happens within 500 msecs." is there really no way to make it refresh only the folders already showing sizes ?
I realize you must have considered it, only I use it to check folders are empty and safe to delete, and while for my situation its not a problem I can see where another person using it for the same reason it might result in him seeing '[empty]' when the refresh was triggered by files being written to the folder.
Its a long shot, but caution might be advised.

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

Re: Calculate folder sizes refresh.

Post by admin »

Hmm, good thinking. I have to meditate...

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

Re: Calculate folder sizes refresh.

Post by admin »

I remove yesterday's change. I have nothing better in store for now, though. :|

Post Reply