• File: dir_util.cpython-37.opt-2.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/proc/self/root/opt/alt/python37/lib64/python3.7/distutils/__pycache__/dir_util.cpython-37.opt-2.pyc
  • Date Modified: 10/26/2026 8:08 PM
  • File size: 3.36 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

YI~db@slddlZddlZddlmZmZddlmZiadddZddd	Z	dd
dZ
dd
ZdddZddZ
dS)N)DistutilsFileErrorDistutilsInternalError)logcCsnt|tstd|ftj|}g}tj|s<|dkr@|Sttj	|rV|Stj
|\}}|g}x4|r|rtj|stj
|\}}|d|qnWx|D]}tj||}tj	|}	t|	rq|dkrt
d||s^yt||WnVtk
rR}
z6|
jtjkr,tj|sBtd||
jdfWdd}
~
XYnX||dt|	<qW|S)Nz(mkpath: 'name' must be a string (got %r)rrzcreating %szcould not create '%s': %s)
isinstancestrrospathnormpathisdir
_path_createdgetabspathsplitinsertjoinrinfomkdirOSErrorerrnoZEEXISTrargsappend)namemodeverbosedry_runZcreated_dirsheadtailZtailsdZabs_headexcr#7/opt/alt/python37/lib64/python3.7/distutils/dir_util.pymkpaths>


&
r%c	CsVt}x(|D] }|tj|tj|qWx t|D]}t||||dq:WdS)N)rr)setaddrrrdirnamesortedr%)Zbase_dirfilesrrrZneed_dirfiledirr#r#r$create_treePs

 r-c
Csdddlm}|s(tj|s(td|yt|}	Wn>tk
rt}
z |rRg}	ntd||
jfWdd}
~
XYnX|st	||dg}x|	D]}tj
||}
tj
||}|drq|rtj|
rt
|
}|dkrtd|||st||||qtj|
r<|t|
|||||||d	q||
||||||d	||qW|S)
Nr)	copy_filez&cannot copy tree '%s': not a directoryzerror listing files in '%s': %s)rz.nfsrzlinking %s -> %s)rr)Zdistutils.file_utilr.rrrrlistdirrstrerrorr%r
startswithislinkreadlinkrrsymlinkrextend	copy_tree)srcdstZ
preserve_modeZpreserve_timesZpreserve_symlinksupdaterrr.nameseZoutputsnZsrc_nameZdst_nameZ	link_destr#r#r$r6csH
"


r6cCsjxTt|D]F}tj||}tj|rBtj|sBt||q|tj|fqW|tj	|fdS)N)
rr/rrrr2_build_cmdtuplerremovermdir)r	cmdtuplesfZreal_fr#r#r$r=sr=cCs|dkrtd||rdSg}t||xp|D]h}y2|d|dtj|d}|tkrdt|=Wq0tk
r}ztd||Wdd}~XYq0Xq0WdS)Nrz'removing '%s' (and everything under it)rzerror removing %s: %s)	rrr=rrrrrwarn)Z	directoryrrr@cmdrr"r#r#r$remove_trees


rDcCs6tj|\}}|ddtjkr2||dd}|S)Nrr)rr
splitdrivesep)rZdriver#r#r$ensure_relativesrG)rrr)rrr)rrrrrr)rr)rrZdistutils.errorsrrZ	distutilsrrr%r-r6r=rDrGr#r#r#r$<module>s
?

D