Ñò §ÚêLc @ s8 d Z d d k Z d d k Z d d k Z d d k l Z d d k Z d d k Z d d d d d d d d d d g Z d e f d „ ƒ YZ y e Wn e j o d Z n Xd d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z e d d „ Z e d d „ Z d „ Z d „ Z d „ Z d S( s‰ Utility functions for copying files and directory trees. XXX The functions here don't copy the resource fork or other metadata on Mac. iÿÿÿÿN( t abspatht copyfileobjt copyfilet copymodet copystatt copyt copy2t copytreet movet rmtreet Errorc B s e Z RS( ( t __name__t __module__( ( ( s /usr/lib64/python2.6/shutil.pyR s i i c C s2 x+ | i | ƒ } | p Pn | i | ƒ q d S( s= copy data from file-like object fsrc to file-like object fdstN( t readt write( t fsrct fdstt lengtht buf( ( s /usr/lib64/python2.6/shutil.pyR s c C s t t i d ƒ o2 y t i i | | ƒ SWqE t j o t SXn t i i t i i | ƒ ƒ t i i t i i | ƒ ƒ j S( Nt samefile( t hasattrt ost pathR t OSErrort Falset normcaseR ( t srct dst( ( s /usr/lib64/python2.6/shutil.pyt _samefile! s c C s“ t | | ƒ o t d | | f ƒ ‚ n t | d ƒ i i ƒ } zF | ~ } t | d ƒ i i ƒ } z | ~ } t | | ƒ Wd QXWd QXd S( s Copy data from src to dsts `%s` and `%s` are the same filet rbt wbN( R R t opent __exit__t __enter__R ( R R t _[1]R t _[2]R ( ( s /usr/lib64/python2.6/shutil.pyR - s &&c C sI t t d ƒ o5 t i | ƒ } t i | i ƒ } t i | | ƒ n d S( s Copy mode bits from src to dstt chmodN( R R t statt S_IMODEt st_modeR$ ( R R t stt mode( ( s /usr/lib64/python2.6/shutil.pyR 6 s c C s÷ t i | ƒ } t i | i ƒ } t t d ƒ o t i | | i | i f ƒ n t t d ƒ o t i | | ƒ n t t d ƒ on t | d ƒ o^ y t i | | i ƒ Wqó t j o4 } t t d ƒ p | i t i j o ‚ qï qó Xn d S( sC Copy all stat info (mode bits, atime, mtime, flags) from src to dstt utimeR$ t chflagst st_flagst EOPNOTSUPPN( R R% R&