�
V
�Qc@s�dZddlZddlmZddlZddlZddlZd�Zd�Zd�Zd�Z d�Z
d �Zd
�Zd�Z
edkr�e�ndS(
sQCompare local and remote dictionaries and transfer differing files -- like rdist.i����N(treprcCs-tj�}td|�}|r>tj|�tj�}ntdd�}d}d}d}dGHtd|�}|r�|}n||f}tj�}tj�}tj||�} t || |�| j
�|j
�tj�}
|
|}t|d �\}}
|Gd
Gt|
�GdGHtd�dS(
Nschdir [%s] thostsvoorn.cwi.nliitsMode should be a string of characters, indicating what to do with differences.
r - read different files to local file system
w - write different files to remote file system
c - create new files, either remote or local
d - delete disappearing files, either remote or local
s
mode [%s] i<�sminutes andtsecondss[Return to exit] (
tostgetcwdt raw_inputtchdirtaskttimetFSProxytFSProxyLocalt
FSProxyClienttcomparet_closetdivmodtround(tpwdtsRtporttverbosetmodetaddresstt1tlocaltremotett2tdttminstsecs((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pytmain s2
cCs td||f�}|p|S(Ns%s [%s] (R(tprompttdefaultR((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pyR)scCs3td|t|�f�}|r/tj|�S|S(Ns%s [%s] (Rtstrtstringtatoi(RR R((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pytaskint-s
cCs�HdGttj��GH|jd�}|jd�}|j�dGHi}x$|j�D]\}}|||s P &