ž ­˙f c@sĴdZddlZddlZddddddd d gZd d„Zd d „Zd d „Zdd„Zdd„Zdd„Z dd„Z dd„Z dd„Z dS(u˜ Path operations common to more than one OS Do not use directly. The OS specific modules import the appropriate functions from this module themselves. iNu commonprefixuexistsugetatimeugetctimeugetmtimeugetsizeuisdiruisfilec Cs1ytj|ƒWntjk r,dSYnXdS(uDTest whether a path exists. Returns False for broken symbolic linksFT(uosustatuerroruFalseuTrue(upath((u0/opt/alt/python33/lib64/python3.3/genericpath.pyuexistss  c Cs?ytj|ƒ}Wntjk r.dSYnXtj|jƒS(u%Test whether a path is a regular fileF(uosustatuerroruFalseuS_ISREGust_mode(upathust((u0/opt/alt/python33/lib64/python3.3/genericpath.pyuisfiles  c Cs?ytj|ƒ}Wntjk r.dSYnXtj|jƒS(u<Return true if the pathname refers to an existing directory.F(uosustatuerroruFalseuS_ISDIRust_mode(usust((u0/opt/alt/python33/lib64/python3.3/genericpath.pyuisdir&s  cCstj|ƒjS(u1Return the size of a file, reported by os.stat().(uosustatust_size(ufilename((u0/opt/alt/python33/lib64/python3.3/genericpath.pyugetsize/scCstj|ƒjS(uCReturn the last modification time of a file, reported by os.stat().(uosustatust_mtime(ufilename((u0/opt/alt/python33/lib64/python3.3/genericpath.pyugetmtime4scCstj|ƒjS(u=Return the last access time of a file, reported by os.stat().(uosustatust_atime(ufilename((u0/opt/alt/python33/lib64/python3.3/genericpath.pyugetatime9scCstj|ƒjS(uAReturn the metadata change time of a file, reported by os.stat().(uosustatust_ctime(ufilename((u0/opt/alt/python33/lib64/python3.3/genericpath.pyugetctime>scCsa|s dSt|ƒ}t|ƒ}x8t|ƒD]*\}}|||kr/|d|…Sq/W|S(uGGiven a list of pathnames, returns the longest common leading componentuN(uminumaxu enumerate(umus1us2uiuc((u0/opt/alt/python33/lib64/python3.3/genericpath.pyu commonprefixDs  cCsÇ|j|ƒ}|r6|j|ƒ}t||ƒ}n|j|ƒ}||kr³|d}xU||krŻ|||d…|kr˘|d|…||d…fS|d7}q^Wn||dd…fS(u¤Split the extension from a pathname. Extension is everything from the last dot to the end, ignoring leading dots. Returns "(root, ext)"; ext may be empty.iNi(urfindumax(upusepualtsepuextsepusepIndexu altsepIndexudotIndexu filenameIndex((u0/opt/alt/python33/lib64/python3.3/genericpath.pyu _splitextUs  u _splitext( u__doc__uosustatu__all__uexistsuisfileuisdirugetsizeugetmtimeugetatimeugetctimeu commonprefixu _splitext(((u0/opt/alt/python33/lib64/python3.3/genericpath.pyus