def METHOD_NAME(local, remote):
    if path.exists(local):
        nf = NetlogFile(remote)
        with open(local, "rb") as f:
            for chunk in f:
                nf.sock.sendall(chunk)  # dirty direct send, no reconnecting
        nf.close()