Python shutil copyfile - missing last few lines
问题 I am routinely missing the last few kb of a file I am trying to copy using shutil copyfile. I did some research and do see someone asking about something similar here: python shutil copy function missing last few lines But I am using copyfile, which DOES seem to use a with statement... with open(src, 'rb') as fsrc: with open(dst, 'wb') as fdst: copyfileobj(fsrc, fdst) So I am perplexed that more users aren't having this issue, if indeed it is some sort of buffering issue - I would think it'd