parameters: (pathFrom, pathTo, maxfileload=maxfileload)
docstring: copy file pathFrom to pathTo, byte for byte
docstring_summary: copy file pathFrom to pathTo, byte for byte
docstring_tokens: copy file pathFrom to pathTo byte for byte
function: def cp(pathFrom, pathTo, maxfileload=maxfileload):
      """
      copy file pathFrom to pathTo, byte for byte
      """
      if os.path.getsize(pathFrom) <= maxfileload:
          bytesFrom = open(pathFrom, 'rb').read()   # read small file all at once
          open(pathTo, 'wb').write(bytesFrom)       # need b mode on Windows
      else:
          fileFrom = open(pathFrom, 'rb')           # read big files in chunks
          fileTo   = open(pathTo,   'wb')           # need b mode here too 
          while 1:
              bytesFrom = fileFrom.read(blksize)    # get one block, less at end
              if not bytesFrom: break               # empty after last chunk
              fileTo.write(bytesFrom)
function_tokens: def cp ( pathFrom , pathTo , maxfileload = maxfileload ) : if os . path . getsize ( pathFrom ) <= maxfileload : bytesFrom = open ( pathFrom , 'rb' ) . read ( ) # read small file all at once open ( pathTo , 'wb' ) . write ( bytesFrom ) # need b mode on Windows else : fileFrom = open ( pathFrom , 'rb' ) # read big files in chunks fileTo = open ( pathTo , 'wb' ) # need b mode here too  while 1 : bytesFrom = fileFrom . read ( blksize ) # get one block, less at end if not bytesFrom : break # empty after last chunk fileTo . write ( bytesFrom )