Only single folder size stored for multiple folders with same name/path when using with CLI/Directory Opus

Discussion related to "Everything" 1.5.
Post Reply
warduweram
Posts: 17
Joined: Fri Aug 25, 2023 2:08 pm

Only single folder size stored for multiple folders with same name/path when using with CLI/Directory Opus

Post by warduweram »

Hey!

I have an issue that might not have to do with Everything in and of itself, but it also might, I can't judge.

I use Everything with Dopus extensively and I have the issue that cached folder sizes in Dopus (not in Everything itself) are not reliable if the folder has a name that is used multiple times with the same path. My offline drives use the same drive letter and I often have a folder like "Movies" in the root. Those folders will then all have the same folder size reported.

Is there anything that could be done to remedy this (apart from using unique folder names, which has quite a few downsides)? Either in Everything itself, the CLI or maybe in the implementation in Dopus? Everything and Dopus are quite the dream team, so I think it would be a good idea for these two to work together as well as possible.

Thanks for your time!
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Only single folder size stored for multiple folders with same name/path when using with CLI/Directory Opus

Post by void »

I'm not sure about DOpus.

However, does Everything show the correct folder size?
warduweram
Posts: 17
Joined: Fri Aug 25, 2023 2:08 pm

Re: Only single folder size stored for multiple folders with same name/path when using with CLI/Directory Opus

Post by warduweram »

Aye, it's always fine in Everything itself. Is it possible that it would be an issue with the command line interface which is used to pull the results to Dopus or do you think it would be an issue exclusively within Dopus?
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Only single folder size stored for multiple folders with same name/path when using with CLI/Directory Opus

Post by void »

I'm not sure about DOpus.
The CLI interface (ES) pulls the sizes values from Everything.
You should see the same values as Everything.

Does ES show the correct folder sizes for you?

Maybe it's the way DOpus performs the folder query, could you please send a Everything Debug Log.
-What version of Everything are you using? (Help -> About Everything -> Version)
warduweram
Posts: 17
Joined: Fri Aug 25, 2023 2:08 pm

Re: Only single folder size stored for multiple folders with same name/path when using with CLI/Directory Opus

Post by warduweram »

Everything in Everything is being displayed correctly, it just seems to be the data in the EFS (Everything Folder Size) column within Dopus that doesn't update if another, older folder with the exact path already exists. So it might have to do with Dopus not including a Volume ID, but just the path itself.

Everything version is 1.5.0.1396a (x64). I'll attach the log file (the relevant operations should be towards the end).

I can also post the implementation within Dopus if you're interested, it's pretty much just JavaScript and not very complicated. They've since included it in Dopus proper, but I'm using the old script, since there's issues with frequent high CPU usage with the new implementation. I can also take it to the Dopus forum of course, I just thought you might be interested, too.

Thanks again!
warduweram
Posts: 17
Joined: Fri Aug 25, 2023 2:08 pm

Re: Only single folder size stored for multiple folders with same name/path when using with CLI/Directory Opus

Post by warduweram »

Should start from this line here:

2025-09-22 01:30:42.567
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Only single folder size stored for multiple folders with same name/path when using with CLI/Directory Opus

Post by void »

Thanks for the logs.
2025-09-22 01:30:44.422: IPC: execute query: < parent:"N:\" folder: > < >
I'm not sure how DOpus gathers the size from Everything.
However, there is an IPC request there..
Looks like DOpus list all folders in a specific location and picks out the matching folder?
Please post the javascript.
warduweram
Posts: 17
Joined: Fri Aug 25, 2023 2:08 pm

Re: Only single folder size stored for multiple folders with same name/path when using with CLI/Directory Opus

Post by warduweram »

I'm not sure myself, either, I haven't really coded in quite a while.

Here are the files, a PDF of the thread that describes the installation procedure, the JS and the Dopus file for the buttons actions (XML apparently), I just attached a txt as extension since the .dop won't upload.

For reference the Dopus forum URI:

https://resource.dopus.com/t/everything ... lder-sizes

Thanks for deleting the log btw! : )
Attachments
EverythingFolderSize.dop.txt
(2.89 KiB) Downloaded 64 times
ColumnEverythingFolderSize.js.txt
(6.44 KiB) Downloaded 72 times
EverythingFolderSize (Use Everything to calculate folder sizes) - Buttons_Scripts - Directory Opus Resource Centre.pdf
(532.55 KiB) Downloaded 97 times
Post Reply