'>>> result = is_path_not_auth(\'nearg1e\')
0 # æ éç»åœå¯æªææè®¿é®
1 # éèŠå¯ç ä¿¡æ¯è¿è¡ç»åœ
-1 # åºç°äºrsyncçerrorä¿¡æ¯æ æ³è¯»å
raisee ReqNoUnderstandError # åºç°äºæ¬åµ=0v0=æ æ³é¢æçéè¯¯'

def is_path_not_auth(self, path_name=''):

    self._rsync_init()
    payload = (path_name + '\n')
    self.sock.send(payload)
    result = self.sock.recv(1024)
    if (result == '\n'):
        result = self.sock.recv(1024)
    if result.startswith('@RSYNCD:    OK'):
        return 0
    if result.startswith('@RSYNCD:    AUTHREQD'):
        return 1
    if ('@ERROR:    chdir    failed' in result):
        return (-1)
    else:
        raise ReqNoUnderstandError()
