scullionw / dirstat-rs

(fastest?) disk usage cli, similar to windirstat.
MIT License
157 stars 11 forks source link

progress bar? #8

Open k4y4k opened 2 years ago

k4y4k commented 2 years ago

hello 👋

context: im on windows 10 and im trying to scope out how much of my drive i can clean up. windirstat crawls along, so i went looking for an alternative, and here you are 🎉

however, the thing i miss from windirstat is progress. i dont expect ds to be very fast (again, i'm on windows 10 and havent turned off antivirus) but im also not sure if its crawling along or hanging?

is there a flag im missing?

thank you for your time 🙏

Mart-Bogdan commented 1 year ago

Hello.

As I udnerstand having actual progress-bar that would calculate remaining files wouldn't be feasible. You need to walk all files to get their count.

But I think it's possible to display number of already scanned files and directories. Detect if we are run in interactive mode, and than use cursor commands to overwrite same line. And update counters once a second, to not use console output on each file, which would slow things down.

k4y4k commented 1 year ago

Hey!

Sounds reasonable. Unfortunately I'm not able to contribute to this project, but I do appreciate the response 🌞

Would it be a good idea for me to close this ticket for the time being, or should I leave it open?

Mart-Bogdan commented 1 year ago

Hey, @k4y4k. IMHO, no need to close it.

Perhaps I'll be able to add it. After I finish, PR I am working on.