Page 1 of 1

Calculate folder sizes refresh.

Posted: 23 Jan 2012 17:10
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.

Re: Calculate folder sizes refresh.

Posted: 23 Jan 2012 17:18
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.

Re: Calculate folder sizes refresh.

Posted: 23 Jan 2012 17:41
by admin
shift+f5 is temporary. it's not meant to stay.

Re: Calculate folder sizes refresh.

Posted: 24 Jan 2012 06:06
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).

Re: Calculate folder sizes refresh.

Posted: 24 Jan 2012 09:23
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.

Re: Calculate folder sizes refresh.

Posted: 24 Jan 2012 10:30
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.

Re: Calculate folder sizes refresh.

Posted: 26 Jan 2012 09:45
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...

Re: Calculate folder sizes refresh.

Posted: 26 Jan 2012 10:29
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).

Re: Calculate folder sizes refresh.

Posted: 06 Feb 2012 10:40
by admin
I think I just fixed it. :)

Re: Calculate folder sizes refresh.

Posted: 06 Feb 2012 10:57
by Twisten
admin wrote:I think I just fixed it. :)
Cool :D

Re: Calculate folder sizes refresh.

Posted: 07 Feb 2012 17:13
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.

Re: Calculate folder sizes refresh.

Posted: 07 Feb 2012 17:44
by admin
Hmm, good thinking. I have to meditate...

Re: Calculate folder sizes refresh.

Posted: 07 Feb 2012 20:20
by admin
I remove yesterday's change. I have nothing better in store for now, though. :|