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?
That way the user would also have an idea how long the action will take to complete, plus which subdirectories take long.
Sounds easy!
Show results during DirSizes
-
- ALTAP Staff
- Posts: 5231
- Joined: 08 Dec 2005, 06:34
- Location: Novy Bor, Czech Republic
- Contact:
Re: Show results during DirSizes
Unfortunately we don't know files/directories count and size until we read whole directory tree.
Re: Show results during DirSizes
Then how can Salamander show the partial results after canceling?
-
- ALTAP Staff
- Posts: 5231
- Joined: 08 Dec 2005, 06:34
- Location: Novy Bor, Czech Republic
- Contact:
Re: Show results during DirSizes
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
In that case, why not process every subdirectory one by one?
Re: Show results during DirSizes
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.
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
(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.)
WinXP Pro SP3 or Win7 x86 | SS 2.54
-
- ALTAP Staff
- Posts: 1112
- Joined: 08 Dec 2005, 09:13
- Location: Novy Bor, Czech Republic
- Contact:
Re: Show results during DirSizes
I see. Good idea. I have added it to our todo list.
Re: Show results during DirSizes
Thanks SvA for making me clear!