U ,ao @sdZddlZddlZddddddd d d d d g ZddZdd Zdd ZddZddZddZ ddZ ddZ dd Z dd Z dd ZddZddZdS)z Path operations common to more than one OS Do not use directly. The OS specific modules import the appropriate functions from this module themselves. N commonprefixexistsgetatimegetctimegetmtimegetsizeisdirisfilesamefile sameopenfilesamestatc Cs.zt|Wnttfk r(YdSXdS)zDTest whether a path exists. Returns False for broken symbolic linksFT)osstatOSError ValueError)pathr0/opt/alt/python38/lib64/python3.8/genericpath.pyrs c Cs6zt|}Wnttfk r(YdSXt|jS)z%Test whether a path is a regular fileF)r rrrS_ISREGst_mode)rstrrrr s c Cs6zt|}Wnttfk r(YdSXt|jS)zcGs`d}}|D]<}t|tr d}q t|tr0d}q t|d|jjdq |r\|r\tdddS)NFTz;() argument must be str, bytes, or os.PathLike object, not z.Can't mix strings and bytes in path components)r strbytes TypeError __class____name__)funcnameargshasstrhasbytesrrrr_check_arg_typess  rH)__doc__r r__all__rr rrrrrrr r r r>rHrrrrs.