Can you find the hidden bug?
import os def copy(fIn, fOut): blockSize = os.statvfs(fIn.name).f_bsize while 1: bytes = fIn.read(blockSize) if not bytes: break fOut.write(bytes)
Can you find the hidden bug?
import os def copy(fIn, fOut): blockSize = os.statvfs(fIn.name).f_bsize while 1: bytes = fIn.read(blockSize) if not bytes: break fOut.write(bytes)