pb icon indicating copy to clipboard operation
pb copied to clipboard

ProgressFile

Open winstonewert opened this issue 7 years ago • 1 comments

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?

winstonewert avatar May 04 '18 19:05 winstonewert

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.

a8m avatar May 05 '18 16:05 a8m