Page 1 of 1

Show results during DirSizes

Posted: 26 Sep 2013, 10:33
by mdruiter
When I press Ctrl+Alt+F10, Salamander starts to Calculate Directory Sizes. It does so in the order the subdirectories are displayed (top-down). When I cancel (Esc) I get to see the results calculated up to that moment. I sometimes do that when the action takes 'too' long: if one or some subdirectories contain a lot of files and/or the network is slow.

Wouldn't it be nice if the results were displayed during calculation? :idea:
That way the user would also have an idea how long the action will take to complete, plus which subdirectories take long.

Sounds easy! :wink:

Re: Show results during DirSizes

Posted: 26 Sep 2013, 12:49
by Jan Rysavy
Unfortunately we don't know files/directories count and size until we read whole directory tree.

Re: Show results during DirSizes

Posted: 26 Sep 2013, 14:24
by mdruiter
Then how can Salamander show the partial results after canceling? :?

Re: Show results during DirSizes

Posted: 26 Sep 2013, 15:19
by Jan Rysavy
We know what we already searched. But don't know total items count and size so it could be 1% or 99% - we cannot know until we read all.

Re: Show results during DirSizes

Posted: 26 Sep 2013, 16:13
by mdruiter
In that case, why not process every subdirectory one by one?

Re: Show results during DirSizes

Posted: 26 Sep 2013, 16:17
by SvA
I take it for granted, that you recursively descent into a directory until you're back in the base directory (the one displayed in the panel). At that point you have visited and summed up all files in that directory tree and know therefore, what to display in the size column of that entry in the panel. So no need to know anything about the rest of files which you have not yet visited.

No progress bar is expected, only that you display what you already know (no work in progress). E.g in Salamander's directory you start summing up files in convert. Before you start summing up doc, you display the value calculated for convert in the panel. Then before you start summing up help you display the size value for doc and so on.

Re: Show results during DirSizes

Posted: 26 Sep 2013, 21:06
by therube
(Oh, I know it's not what you want, but a swift little utility, WizTree finds the files and folders using the most disk space on your hard drive.)

Re: Show results during DirSizes

Posted: 27 Sep 2013, 08:35
by Petr Solin
I see. Good idea. I have added it to our todo list.

Re: Show results during DirSizes

Posted: 27 Sep 2013, 09:24
by mdruiter
Thanks SvA for making me clear!