Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
lib
/
python2.4
/
Upload File :
New :
File
Dir
//proc/self/root/usr/lib/python2.4/shutil.pyo
m๒ =5Dc @ s๋ d Z d k Z d k Z d k Z d k Z d k l Z d d d d d d d d d d g Z d e i f d YZ d d d Z d Z d Z d Z d Z d Z d Z e d Z e d 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. N( s abspatht copyfileobjt copyfilet copymodet copystatt copyt copy2t copytreet movet rmtreet Errorc B s t Z RS( N( t __name__t __module__( ( ( t /usr/lib/python2.4/shutil.pyR s i i c C s4 x- | i | } | p Pn | i | q Wd S( s= copy data from file-like object fsrc to file-like object fdsti N( t fsrct readt lengtht buft fdstt write( R R R R ( ( R R s c C s t t i d o5 y t i i | | SWqH t j o t SqH Xn t i i t i i | t i i t i i | j S( Nt samefile( t hasattrt ost pathR t srct dstt OSErrort Falset normcaset abspath( R R ( ( R t _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 R R t NoneR R t openR t close( R R R R ( ( R R ' 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 statR t stt S_IMODEt st_modet modeR# R ( R R R% R( ( ( R R 8 s c C sy t i | } t i | i } t t d o t i | | i | i f n t t d o t i | | n d S( s? Copy all stat info (mode bits, atime and mtime) from src to dstt utimeR# N( R R$ R R% R&