MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/2/cwd/proc/2/root/proc/2/task/2/root/usr/lib/python2.4/Demo/pdist/cmptree.pyc
mò
‚=5Dc@s›dZdkZdklZdkZdkZdkZd„Zd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
edjoeƒndS(sQCompare local and remote dictionaries and transfer differing files -- like rdist.N(sreprcCs1tiƒ}td|ƒ}|oti|ƒtiƒ}ntddƒ}
d}d}d}
dGHtd|
ƒ}|o
|}
n|
|f}tiƒ}tiƒ}ti||ƒ}t|||
ƒ|iƒ|iƒtiƒ}	|	|}t|d	ƒ\}}|Gd
Gt|ƒGdGHtdƒdS(
Nschdir [%s] thostsvoorn.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] (tostgetcwdtpwdt	raw_inputtstchdirtaskRtporttverbosetmodetaddressttimett1tFSProxytFSProxyLocaltlocalt
FSProxyClienttremotetcomparet_closett2tdttdivmodtminstsecstround(RRR
RRRR
RRRRRRR((t(/usr/lib/python2.4/Demo/pdist/cmptree.pytmain	s2




cCs!td||fƒ}|p|S(Ns%s [%s] (RtprompttdefaultR(RR R((RR	)scCs8td|t|ƒfƒ}|oti|ƒSn|S(Ns%s [%s] (RRtstrR Rtstringtatoi(RR R((Rtaskint-scCsþHdGttiƒƒGH|idƒ}
|idƒ}|iƒdGHh}x$|i
ƒD]\}}
|
||<qVWdGH|i
|
ƒ}	dGt|	ƒGHh}x#|	D]\}}|||<|i|ƒpAt|ƒGdGHd|jo!d	|jot|||ƒq»q ||}||jot|ƒG|i|ƒ}|i|ƒ}||jo)d
Gd|jot|||ƒq¶n;||jo)dGd|jot|||ƒq¶nd
GHq q Wx™|iƒD]‹}|iƒpxt|ƒGdGtƒd|jo!d	|jot|||ƒn1d|jo#d|joti|ƒdGHnHqÌqÌWdGH|i
|ƒ}g}xã|D]Û}|i|ƒo dGt|ƒGH|i |ƒq|dGt|ƒGdGHd|jo…d	|joxdt|ƒ}d|jo
d}nt#|dƒ}|d djo-|i$|ƒdt|ƒGH|i |ƒqWq|q|W|i%ƒ}x2|D]*}||jodGt|ƒGdGHqnqnWx[|D]S}dGt|ƒGH|i'|ƒ|i'|ƒt(|||ƒ|i)ƒ|i)ƒq£WdS(NsPWD =tsumlisttlistsubdirsscalculating local sums ...sgetting remote sums ...tgotsonly remotetrtcsremote newerslocal newertws same mtime but different sum?!?!sonly locallytdsremoved.sgettin subdirs ...sCommon subdirectorysRemote subdirectorysnot found locallys"Create local subdirectory %s? [y] tyitYsSubdirectory %s madesLocal subdirectorysnot found remotelysEntering subdirectory(R,R-(*treprRRRt_sendtsums_idt
subdirs_idt_flushtlsumdictRR%tnametinfot_recvtsumstlentrsumdicttrsumthas_keyRtrecvfiletlsumtmtimetrmtimetlmtimetsendfiletkeystfltunlinktsubdirstcommontisdirtappendtprtokR	tmkdirR&tlsubdirstcdRtback(RRRRIRER1RJRLR@R7R0R=R4R5R3R9R:RFR?((RR2sœ









	


		






cCsãy|i|ƒWn+ttifj
o}dG|GHdSnXdGtƒt|ƒi	ƒ}tiƒ}|i
d||ƒ|iƒtiƒ}||}t|ƒGdGt|ƒGdG|o dGtt|ƒ|ƒGdGnHdS(Nscannot create:ssending ...twritesbytes inRsi.e.s	bytes/sec(RtcreateR4tIOErrorRterrortmsgRCtopentreadtdataRRt
_send_noreplyR2RRR8R(RRR4RRVRSRR((RRA‚s"		

 cCsRd}z t|||ƒ}d}|SWd|pd|fGH|i|ƒnXdS(Niis#*** recvfile of %r failed, deleting(RJt
recvfile_realRRR4trvtdelete(RRR4RYRJ((RR<›scCswy|i|ƒWn+ttifj
o}dG|GHdSnXdGtƒt|dƒ}	t
i
ƒ}dd}
d}|id|||
ƒ}|iƒxh||
}
|id||
|
ƒ}|i|ƒ}|}|pPn|	i|ƒ|	i|ƒ|
}qšW|	iƒ}t
i
ƒ}|	iƒ||}|Gd	Gt|ƒGd
G|odGt||ƒGdGnH|i|ƒdS(
Nscannot create:s
receiving ...R*iiiRUisbytes inRsi.e.s	bytes/sec(RRPR4RQRRRRSRCRTtfRRtlengthtoffsetRR/tidR2t	newoffsettnewidR6RVtseekROttelltsizeRtcloseRRtint(RRR4R^RcRVRSR]RR[R_RRR\R`((RRX¦sB		






cCstiiƒdS(N(tsyststdouttflush(((RRCÌst__main__(t__doc__RfR.RRRRR	R$RRAR<RXRCt__name__(
R$RARRRCR.R<RfRXRR	RR((Rt?s	
				 			P			&