No worries. I'm just happy I don't have a major issue here.DmFedorov wrote:Now i can not reproduce this. Excuse me.
Cheers,
Filehero
No worries. I'm just happy I don't have a major issue here.DmFedorov wrote:Now i can not reproduce this. Excuse me.
This is normal. Zip extraction does not count as "file operation" in this context.highend wrote:Is this intended?
When I extract a .zip archive with context menu - Zip - Extract here
the cached! folder size view is refreshed (or recalculated?) multiple times during extraction (probably because of having more than one file in the archive).
Auto-refresh is on but
Configuration | Refresh, Icons, History | Auto-Refresh | Refresh during file operations
is off
I'm not sure yet if and what to do about this. Needs more thinking.LittleBiG wrote:Indeed. However, I realized what I wrote sounds complicated. It simply means that "Clear Folder Size Cache" should be a way to be partial. (Clear cached sizes in the current folder and its subfolders).admin wrote:Fascinating how simple ideas become more and more complex once they get in touch with reality.
If this partial clear existed and was added to the scripting somehow like ClearSizeCache($foldername,"recursive"), a very exciting thing could be scripted. Imagine a permanent variable with this content:LittleBiG wrote:Indeed. However, I realized what I wrote sounds complicated. It simply means that "Clear Folder Size Cache" should be a way to be partial. (Clear cached sizes in the current folder and its subfolders).admin wrote:Fascinating how simple ideas become more and more complex once they get in touch with reality.
Code: Select all
$pv_RefreshCache = "C:\Downloads\,20160523,10|D:\Documents\,20160522,3"Noted. *sigh*admin wrote:I'm not sure yet if and what to do about this. Needs more thinking.
What about this: When calculating a nested folder, all calculated subfolders are written to the cache as well right away.LittleBiG wrote:If I decide to use Calculate Folder Sizes to refresh the cache, after refreshing please delete the subfolders from the cache. Otherwise very weird sizes can happen. Think about the situation, when you have the Downloads folders with subfolders Movie, Games, Music and so on, and the next subfolder level like Games/Shooter, Games/Adventure, Movie/Romance, Movie/Comedy and so on. If I have downloaded things, the easiest way to refresh the cache is to recalculate the size of the Downloads folder. If subfolders are not deleted from the cache, I have to find some workaround or I have to visit each subfolder and refresh their size too.
I vote for this too.admin wrote:When calculating a nested folder, all calculated subfolders are written to the cache as well right away.
Hehe, you approached it from the other end. I can see only one advantages comparing with partial delete: going down is fast.admin wrote:What about this: When calculating a nested folder, all calculated subfolders are written to the cache as well right away.
Advantages:
- Your problem disappears. All subfolders are updated right away.
- Going down into a cached folder will be totally fast, since all subfolders are also already cached.
Disadvantage:
- The cache will be bigger. Maybe much bigger. (But not slower, don't worry. I use binary search here, so it's lightning fast in any size).
I vote for the opposite. To cache only what is necessary.DmFedorov wrote:I vote for this too.admin wrote:When calculating a nested folder, all calculated subfolders are written to the cache as well right away.
I would like to bring this to your attention with the addition that zero size also shouldn't be cached. I have just unzipped something into a new folder. Its size was cached 0 (because WinZip created the folder first than started to fill with the data), however I unzipped more than a gigabyte into that folder...LittleBiG wrote:Additionally, I wouldn't cache the [Empty] folders. It will be very misleading when some file will be added and the cache still shows empty. It is worse than a not quite exact folder size.
Yep, exactly what I will do.highend wrote:Why not just the first subfolder(s) of the current folder to cache (without any further recursion)?
Good idea! Done.LittleBiG wrote:I would like to bring this to your attention with the addition that zero size also shouldn't be cached. I have just unzipped something into a new folder. Its size was cached 0 (because WinZip created the folder first than started to fill with the data), however I unzipped more than a gigabyte into that folder...LittleBiG wrote:Additionally, I wouldn't cache the [Empty] folders. It will be very misleading when some file will be added and the cache still shows empty. It is worse than a not quite exact folder size.