How can you get real time copy progress of a large file with Python?
问题 I've searched high and low, and each time I find something that looks promising it's not panned out. Ultimately I want to grab the real time progress of a file copy on a linux machine from inside python. I'll take that progress and emit it to a client web page with Flask-SocketIO, likely threaded to avoid blocking. I don't mind if it's rsync, copy, or any other means...(shutil etc) to handle the actual copy. I just want a hook to push an update over the socket. Thus far I've found this to be