Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
lib-old
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/lib-old/dircmp.pyo
mς =5Dc @ s d Z d k Z d k Z d k Z d k Z d k Td f d YZ d Z d Z d Z d Z e d j o e n d S( s) A class to build directory diff tools on.N( t *t dircmpc B sh t Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z RS( s Directory comparison class.c C s: | | _ | | _ t i t i g | _ d d g | _ | S( s Initialize.t RCSt tagsN( t at selft bt ost curdirt pardirt hidet ignore( R R R ( ( t$ /usr/lib/python2.4/lib-old/dircmp.pyt new s c C s~ t t i | i | i | _ t t i | i | i | _ | i i | i i | i | i | i d S( s0 Compare everything except common subdirectories.N( t filtert dircachet listdirR R R t a_listR t b_listt sortt phase1t phase2t phase3( R ( ( R t run s !! c C s g | _ g | _ xE | i D]: } | | i j o | i i | q | i i | q Wg | _ x5 | i D]* } | | i j o | i i | qm qm Wd S( s Compute common names.N( R t a_onlyt commonR t xR t appendt b_only( R R ( ( R R ! s c C s g | _ g | _ g | _ x]| i D]R} t i i | i | } t i i | i | } d } y t i | } Wn t i j o } d } n Xy t i | } Wn t i j o } d } n X| o t | t } t | t } | | j o | i i | qwt | o | i i | qwt | o | i i | qw| i i | q% | i i | q% Wd S( s( Distinguish files, directories, funnies.i i N( R t common_dirst common_filest common_funnyR R R t patht joinR t a_pathR t b_patht okt statcachet statt a_statt errort whyt b_statt S_IFMTt ST_MODEt a_typet b_typeR t S_ISDIRt S_ISREG( R R# R$ R. R* R- R' R"