MSV FM

[email protected]: ~ $
Path : /usr/lib64/python2.7/Demo/pdist/
File Upload :
Current < : //usr/lib64/python2.7/Demo/pdist/cmptree.pyo

�
��^c@s�dZddlZddlmZddlZddlZddlZd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
edkr�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] 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] (
tostgetcwdt	raw_inputtchdirtaskttimetFSProxytFSProxyLocalt
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]\}}|||<qVWdGH|j|�}dGt|�GHi}	x|D]\}}
|
|	|<|j|�st|�GdGHd|kr�d	|kr�t	|||�q�q�||}||
kr�t|�G|j
|�}|j
|�}
||
krrd
Gd|kr�t	|||�q�n6|
|kr�dGd|kr�t|||�q�nd
GHq�q�Wx�|j�D]�}|	j�s�t|�GdGt
�d|krd	|krt|||�n-d|kr<d|kr<tj|�dGHnHq�q�WdGH|j|�}g}x�|D]�}|j|�r�dGt|�GH|j|�qedGt|�GdGHd|kred	|kredt|�}d|kr�d}nt|d�}|d dkr7|j|�dt|�GH|j|�q7qeqeW|j�}x0|D](}||krNdGt|�GdGHqNqNWx[|D]S}dGt|�GH|j|�|j|�t|||�|j�|j�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-(RRRt_sendt_flushR%t_recvtlenthas_keytrecvfiletmtimetsendfiletkeystfltunlinktisdirtappendRtmkdirR&tcdR
tback(RRRtsums_idt
subdirs_idtlsumdicttnametinfotsumstrsumdicttrsumtlsumtrmtimetlmtimetsubdirstcommontprtoktlsubdirs((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pyR
2s�






	





cCs�y|j|�Wn&ttjfk
r9}dG|GHdSXdGt�t|�j�}tj�}|jd||�|j	�tj�}||}t
|�GdGt|�GdG|r�dGtt
|�|�GdGnHdS(Nscannot create:ssending ...twritesbytes inRsi.e.s	bytes/sec(tcreatetIOErrorRterrorR7topentreadR	t
_send_noreplyR/R1R(RRRAtmsgtdataRRR((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pyR5�s"	

cCsPd}z t|||�}d}|SWd|sKd|fGH|j|�nXdS(Niis#*** recvfile of %r failed, deleting(t
recvfile_realtdelete(RRRARLtrv((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pyR3�scCscy|j|�Wn&ttjfk
r9}dG|GHdSXdGt�t|d�}tj�}d}d}|jd|||�}|j�xe||}	|jd||	|�}
|j	|�}|
}|s�Pn|j
|�|j|�|	}q�W|j�}tj�}
|j
�|
|}|GdGt|�Gd	G|rQd
G||GdGnH|j	|�dS(
Nscannot create:s
receiving ...R*iiiRSsbytes inRsi.e.s	bytes/seci(RORPRRQR7RRR	R.R/R0tseekRNttelltcloseR(RRRARUtfRtlengthtoffsettidt	newoffsettnewidRVtsizeRR((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pyRW�s@	






cCstjj�dS(N(tsyststdouttflush(((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pyR7�st__main__(t__doc__RdRR
R	RRRR$R
R5R3RWR7t__name__(((s*/usr/lib64/python2.7/Demo/pdist/cmptree.pyt<module>s	 			P			&	
Bethany
Bethany
0%

THE FINEST HOTEL NEAR LAKE KIVU

The Perfect Base For You

Required fields are followed by *





EC1A68011

About Us

Delicious Interior With The Pinch Of Everything

Bethany Investment group is Presbyterian church in Rwanda(EPR) company that manage Hotel and Guest house in Karongi (Bethany Hotel), ISANO branch in GIKONDO(Kigali), Kiyovu branch(Kigali), AMIZERO branch(Nyagatare-East) and Gisenyi Branch(Rubavu).

Accomodation

Get a Comfortable Room
Feel The Comfort

Get a comfortable room and feel our hotel’s comfort. Bethany Hotel features a variety of fully furnished rooms with extra space, Executive rooms, Deluxe rooms with a beautiful lake view and garden space, Deluxe rooms, comfort rooms, family rooms and standard rooms at your service.

Standard Single

Services

We Provide Top Class Facility
Especially For You

Beach BBQ Party

Kick back on the beach& and enjoy our berbecue from our masterchef

Breakfast

Kick back at our hotels& enjoy our breakfast from our masterchef

Conference Hall

Kick back at our hotels& enjoy our conference halls from all bethany branches

Enjoy with your partner

Honeymoon Package

80%

Get In Touch

Don’t Miss Any Update

    +

    Search your Room

    Required fields are followed by *