a DOgo@sdZddlZddlZgdZddZddZdd Zd d Zd d ZddZ ddZ ddZ ddZ ddZ ddZddZddZdS)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|Wnttfy&YdS0dS)zDTest whether a path exists. Returns False for broken symbolic linksFT)osstatOSError ValueError)pathr0/opt/alt/python39/lib64/python3.9/genericpath.pyrs rc Cs4zt|}Wnttfy&YdS0t|jS)z%Test whether a path is a regular fileF)r rrrS_ISREGst_mode)rstrrrr s r c Cs4zt|}Wnttfy&YdS0t|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