ACC SHELL
Path : /usr/lib/python/ |
|
Current File : //usr/lib/python/shutil.pyo |
Ñò
oÄMc @ s, 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 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/lib/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/lib/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/lib/python2.6/shutil.pyt _samefile s
c C s” t | | ƒ o t d | | f ‚ n d } d } z/ t | d ƒ } t | d ƒ } t | | ƒ Wd | o | i ƒ n | o | i ƒ n Xd S( s Copy data from src to dsts `%s` and `%s` are the same filet rbt wbN( R R
t Nonet openR t close( R R R R ( ( s /usr/lib/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"