| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/paste/debug/ |
Upload File : |
Ñò
ÊIc @ s d Z d d k Z d d k l Z d d k l Z d d k l Z d d k Z d d k Z d d d d d
d g Z d e f d „ ƒ YZ
d e f d
„ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ
d d e d „ Z e d „ Z d d d „ Z d d d „ Z d „ Z d „ Z d S( s
Module to find differences over time in a filesystem
Basically this takes a snapshot of a directory, then sees what changes
were made. The contents of the files are not checked, so you can
detect that the content was changed, but not what the old version of
the file was.
iÿÿÿÿN( t fnmatch( t datetime( t IterableUserDictt Difft Snapshott Filet Dirt report_expected_diffst show_diffc B s8 e Z d Z d „ Z d „ Z d „ Z e e d „ Z RS( s9
Represents the difference between two snapshots
c C s | | _ | | _ | i ƒ d S( N( t beforet aftert
_calculate( t selfR R
( ( s6 /usr/lib/python2.6/site-packages/paste/debug/fsdiff.pyt __init__ s c C s± | i i } | i i } h | _ h | _ | i ƒ | _ xq | i ƒ D]c \ } } | | j o | | i | <qF n | i | =| i | | i j o | | | i | <qF qF Wd S( N( R t dataR
t deletedt updatedt copyt createdt itemst mtime( R R R
t patht f( ( s6 /usr/lib/python2.6/site-packages/paste/debug/fsdiff.pyR ! s
c C s
| i ƒ S( N( t report( R ( ( s6 /usr/lib/python2.6/site-packages/paste/debug/fsdiff.pyt __str__/ s c
C sï g } | o0 | i d | i i | i i | i i f ƒ n x~d | i t f d | i t f d | i t f g D]I\ } } } | o3| i d | ƒ | i ƒ } | i
ƒ d } x| D]÷ \ } } d t | | d d d
t ƒ}
| } | o% | i
d j o |
d | i
7}
n | o† g } | i i | ƒ o | i | i | i ƒ n | i i | ƒ o | i | i | i ƒ n |
d
d i t t | ƒ ƒ 7}
n | i |
ƒ q» Wqq qq Wt | ƒ d j o | i d ƒ n d i | ƒ S( Ns Difference in %s from %s to %s:R R R s -- %s: -------------------t s %st indenti t include_seps N/As (%s bytes)s (mtime: %s)s ->i s (no changes)s
( t appendR t base_patht
calculatedR
R t TrueR R R t sortt
_space_prefixt Falset sizet getR t joint mapt reprt len( R t headert datest st namet filest show_sizet lastR R t tt parts( ( s6 /usr/lib/python2.6/site-packages/paste/debug/fsdiff.pyR 2 sD
$( t __name__t
__module__t __doc__R
R R R R"