Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
lib
/
python2.4
/
distutils
/
Upload File :
New :
File
Dir
//proc/self/root/usr/lib/python2.4/distutils/dir_util.pyc
mò ‚=5Dc @ s¯ d Z d Z d k Z d k Z d k Td k l Z l Z d k l Z h a d d d d „ Z d d d d „ Z d d d d d d d „ Z d „ Z d d d „ Z d „ Z d S( sW distutils.dir_util Utility functions for manipulating directories and directory trees.s8 $Id: dir_util.py 43260 2006-03-23 19:07:46Z tim.peters $N( t *( s DistutilsFileErrors DistutilsInternalError( s logiÿ i c C sÀ t | t ƒ p t d | f ‚ n t i i | ƒ } g } t i i | ƒ p | d j o | Sn t i t i i | ƒ ƒ o | Sn t i i | ƒ \ } } | g } xO | oG | o@ t i i | ƒ o, t i i | ƒ \ } } | i d | ƒ q¬ Wx¾ | D]¶ } t i i | | ƒ } t i i | ƒ } t i | ƒ o qn t i d | ƒ | pQ y t i | ƒ | i | ƒ Wq®t j o } t d | | d f ‚ q®Xn d t | <qW| S( s Create a directory and any missing ancestor directories. If the directory already exists (or if 'name' is the empty string, which means the current directory, which of course exists), then do nothing. Raise DistutilsFileError if unable to create some directory along the way (eg. some sub-path exists, but is a file rather than a directory). If 'verbose' is true, print a one-line summary of each mkdir to stdout. Return the list of directories actually created.s( mkpath: 'name' must be a string (got %r)t i s creating %ss could not create '%s': %siÿÿÿÿi N( t isinstancet namet StringTypest DistutilsInternalErrort ost patht normpatht created_dirst isdirt _path_createdt gett abspatht splitt headt tailt tailst insertt dt joint abs_headt logt infot dry_runt mkdirt appendt OSErrort exct DistutilsFileError( R t modet verboseR R R R R R R R ( ( t( /usr/lib/python2.4/distutils/dir_util.pyt mkpath s>