pb
pb copied to clipboard
ProgressFile
I wrote the following module for my project
https://gist.github.com/winstonewert/7a003b6c745226313ade0689e053fec3
It provide a ProgressFile which wraps a std::fs::File object and adds a progress bar for processing through the file. It automatically fetches the size of the file and sets the units to Bytes. Its really nifty for programs which process large files.
I've found it quite useful and use it everywhere. I'm wondering if there would be interest in including this in pbr if I contributed it?
Thanks for suggesting that @winstonewert. It does seem useful. I don't have a concrete opinion about this, so I'll keep this open for now and let's see what others think about it.