golden hour
/lib64/python2.7/distutils
⬆️ Go Up
Upload
File/Folder
Size
Actions
README
295 B
Del
OK
__init__.py
337 B
Del
OK
__init__.pyc
385 B
Del
OK
__init__.pyo
385 B
Del
OK
archive_util.py
7.64 KB
Del
OK
archive_util.pyc
7.28 KB
Del
OK
archive_util.pyo
7.28 KB
Del
OK
bcppcompiler.py
14.59 KB
Del
OK
bcppcompiler.pyc
7.7 KB
Del
OK
bcppcompiler.pyo
7.7 KB
Del
OK
ccompiler.py
45.54 KB
Del
OK
ccompiler.pyc
35.96 KB
Del
OK
ccompiler.pyo
35.82 KB
Del
OK
cmd.py
18.82 KB
Del
OK
cmd.pyc
16.41 KB
Del
OK
cmd.pyo
16.41 KB
Del
OK
command
-
Del
OK
config.py
4.03 KB
Del
OK
config.pyc
3.49 KB
Del
OK
config.pyo
3.49 KB
Del
OK
core.py
8.88 KB
Del
OK
core.pyc
7.5 KB
Del
OK
core.pyo
7.5 KB
Del
OK
cygwinccompiler.py
16.87 KB
Del
OK
cygwinccompiler.pyc
9.19 KB
Del
OK
cygwinccompiler.pyo
9.19 KB
Del
OK
debug.py
162 B
Del
OK
debug.pyc
254 B
Del
OK
debug.pyo
254 B
Del
OK
dep_util.py
3.43 KB
Del
OK
dep_util.pyc
3.11 KB
Del
OK
dep_util.pyo
3.11 KB
Del
OK
dir_util.py
7.78 KB
Del
OK
dir_util.pyc
6.72 KB
Del
OK
dir_util.pyo
6.72 KB
Del
OK
dist.py
48.88 KB
Del
OK
dist.pyc
38.64 KB
Del
OK
dist.pyo
38.64 KB
Del
OK
emxccompiler.py
11.65 KB
Del
OK
emxccompiler.pyc
7.29 KB
Del
OK
emxccompiler.pyo
7.29 KB
Del
OK
errors.py
3.41 KB
Del
OK
errors.pyc
6.14 KB
Del
OK
errors.pyo
6.14 KB
Del
OK
extension.py
10.65 KB
Del
OK
extension.pyc
7.24 KB
Del
OK
extension.pyo
7.02 KB
Del
OK
fancy_getopt.py
17.53 KB
Del
OK
fancy_getopt.pyc
11.68 KB
Del
OK
fancy_getopt.pyo
11.5 KB
Del
OK
file_util.py
7.61 KB
Del
OK
file_util.pyc
6.47 KB
Del
OK
file_util.pyo
6.47 KB
Del
OK
filelist.py
12.39 KB
Del
OK
filelist.pyc
10.51 KB
Del
OK
filelist.pyo
10.51 KB
Del
OK
log.py
1.65 KB
Del
OK
log.pyc
2.72 KB
Del
OK
log.pyo
2.72 KB
Del
OK
msvc9compiler.py
30.29 KB
Del
OK
msvc9compiler.pyc
21.04 KB
Del
OK
msvc9compiler.pyo
20.96 KB
Del
OK
msvccompiler.py
23.08 KB
Del
OK
msvccompiler.pyc
17.11 KB
Del
OK
msvccompiler.pyo
17.11 KB
Del
OK
spawn.py
7.61 KB
Del
OK
spawn.pyc
6.02 KB
Del
OK
spawn.pyo
6.02 KB
Del
OK
sysconfig.py
16.52 KB
Del
OK
sysconfig.py.debug-build
16.42 KB
Del
OK
sysconfig.pyc
12.96 KB
Del
OK
sysconfig.pyo
12.96 KB
Del
OK
text_file.py
12.12 KB
Del
OK
text_file.pyc
9.03 KB
Del
OK
text_file.pyo
9.03 KB
Del
OK
unixccompiler.py
12.56 KB
Del
OK
unixccompiler.py.distutils-rpath
12.03 KB
Del
OK
unixccompiler.pyc
7.76 KB
Del
OK
unixccompiler.pyo
7.76 KB
Del
OK
util.py
18.28 KB
Del
OK
util.pyc
14.58 KB
Del
OK
util.pyo
14.58 KB
Del
OK
version.py
11.17 KB
Del
OK
version.pyc
7.04 KB
Del
OK
version.pyo
7.04 KB
Del
OK
versionpredicate.py
4.98 KB
Del
OK
versionpredicate.pyc
5.41 KB
Del
OK
versionpredicate.pyo
5.41 KB
Del
OK
Edit: file_util.pyc
� ��ic @ s� d Z d Z d d l Z d d l m Z d d l m Z i d d 6d d 6d d 6Z d d � Z d d d d d d d � Z d d d � Z d � Z d S( sF distutils.file_util Utility functions for operating on single files. s $Id$i����N( t DistutilsFileError( t logt copyings hard linkingt hards symbolically linkingt symi i c C s� d } d } z�y t | d � } Wn2 t j k rV \ } } t d | | f � � n Xt j j | � r� y t j | � Wq� t j k r� \ } } t d | | f � � q� Xn y t | d � } Wn2 t j k r� \ } } t d | | f � � n Xx� y | j | � } Wn2 t j k rD\ } } t d | | f � � n X| sOPn y | j | � Wq� t j k r�\ } } t d | | f � � q� Xq� Wd | r�| j � n | r�| j � n Xd S( s5 Copy the file 'src' to 'dst'. Both must be filenames. Any error opening either file, reading from 'src', or writing to 'dst', raises DistutilsFileError. Data is read/written in chunks of 'buffer_size' bytes (default 16k). No attempt is made to handle anything apart from regular files. t rbs could not open '%s': %ss could not delete '%s': %st wbs could not create '%s': %ss could not read from '%s': %ss could not write to '%s': %sN( t Nonet opent ost errorR t patht existst unlinkt readt writet close( t srct dstt buffer_sizet fsrct fdstt errnot errstrt buf( ( s+ /usr/lib64/python2.7/distutils/file_util.pyt _copy_file_contents sF i i c C s� d d l m } d d l m } m } m } m } t j j | � sW t d | � � n t j j | � r� | } t j j | t j j | � � } n t j j | � } | r� | | | � r� | d k r� t j d | � n | d f Sy t | } Wn! t k rt d | � � n X| d k rxt j j | � t j j | � k r_t j d | | | � qxt j d | | | � n | r�| d f S| d k r�t j j | � o�t j j | | � s�t j | | � q�n� | d k rt j j | � ot j j | | � s�t j | | � q�nu t | | � | s3| r�t j | � } | rit j | | | | | f � n | r�t j | | | | � � q�n | d f S( s� Copy a file 'src' to 'dst'. If 'dst' is a directory, then 'src' is copied there with the same name; otherwise, it must be a filename. (If the file exists, it will be ruthlessly clobbered.) If 'preserve_mode' is true (the default), the file's mode (type and permission bits, or whatever is analogous on the current platform) is copied. If 'preserve_times' is true (the default), the last-modified and last-access times are copied as well. If 'update' is true, 'src' will only be copied if 'dst' does not exist, or if 'dst' does exist but is older than 'src'. 'link' allows you to make hard links (os.link) or symbolic links (os.symlink) instead of copying: set it to "hard" or "sym"; if it is None (the default), files are copied. Don't set 'link' on systems that don't support it: 'copy_file()' doesn't check if hard or symbolic linking is available. Under Mac OS, uses the native file copy function in macostools; on other systems, uses '_copy_file_contents()' to copy file contents. Return a tuple (dest_name, copied): 'dest_name' is the actual name of the output file, and 'copied' is true if the file was copied (or would have been copied, if 'dry_run' true). i����( t newer( t ST_ATIMEt ST_MTIMEt ST_MODEt S_IMODEs4 can't copy '%s': doesn't exist or not a regular filei s"