def GetFileLength(fh):
  pos = fh.tell()

  fh.seek(0, 2)
  length = fh.tell()
  fh.seek(pos, 0)
  return length
Returns the length of the file represented by fh.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/appcfg.py/GetFileLength