Files
PowerToys/PythonEnv/2.7/Lib/genericpath.pyc

21 lines
3.5 KiB
Plaintext
Raw Normal View History

2013-12-21 01:22:42 +08:00
<03>
<EFBFBD><EFBFBD>uMc@s<>dZddlZddlZddddddd d
gZd <00>Zd <00>Zd <00>Zd<00>Zd<00>Zd<00>Z d<00>Z
d<00>Z d<00>Z dS(s<>
Path operations common to more than one OS
Do not use directly. The OS specific modules import the appropriate
functions from this module themselves.
i<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Nt commonprefixtexiststgetatimetgetctimetgetmtimetgetsizetisdirtisfilecCs-ytj|<00>Wntjk
r(tSXtS(sDTest whether a path exists. Returns False for broken symbolic links(toststatterrortFalsetTrue(tpath((sHd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\genericpath.pyRs
cCs;ytj|<00>}Wntjk
r*tSXtj|j<00>S(s%Test whether a path is a regular file(RR R
R tS_ISREGtst_mode(R tst((sHd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\genericpath.pyRs
cCs;ytj|<00>}Wntjk
r*tSXtj|j<00>S(s<Return true if the pathname refers to an existing directory.(RR R
R tS_ISDIRR(tsR((sHd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\genericpath.pyR&s
cCstj|<00>jS(s1Return the size of a file, reported by os.stat().(RR tst_size(tfilename((sHd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\genericpath.pyR/scCstj|<00>jS(sCReturn the last modification time of a file, reported by os.stat().(RR tst_mtime(R((sHd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\genericpath.pyR4scCstj|<00>jS(s=Return the last access time of a file, reported by os.stat().(RR tst_atime(R((sHd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\genericpath.pyR9scCstj|<00>jS(sAReturn the metadata change time of a file, reported by os.stat().(RR tst_ctime(R((sHd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\genericpath.pyR>scCs[|s
dSt|<00>}t|<00>}x2t|<00>D]$\}}|||kr/|| Sq/W|S(sGGiven a list of pathnames, returns the longest common leading componentt(tmintmaxt enumerate(tmts1ts2titc((sHd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\genericpath.pyRDs   cCs<>|j|<00>}|r6|j|<00>}t||<00>}n|j|<00>}||kr<>|d}x?||kr<>|||kr<>|| ||fS|d7}q^Wn|dfS(s<>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.iR(trfindR(tptseptaltseptextseptsepIndext altsepIndextdotIndext filenameIndex((sHd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\genericpath.pyt _splitextUs 
( t__doc__RR t__all__RRRRRRRRR*(((sHd:\github\WinAlfred\WinAlfred\bin\Debug\PythonEnv\2.7\lib\genericpath.pyt<module>s