# File tokyotyrant.rb, line 718 def copy(path) path = _argstr(path) if !@sock @ecode = EINVALID return false end sbuf = [0xC8, 0x73, path.length].pack("CCN") sbuf += path if !_send(sbuf) @ecode = ESEND return false end code = _recvcode if code == -1 @ecode = ERECV return false end if code != 0 @ecode = EMISC return false end return true end