Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/sys/lib/python2.7/dircache.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�`^c@srdZddlmZeddd�[ddlZddd	d
gZiad�Zd�ZeZd
�Z	dS(s�Read and cache directory listings.

The listdir() routine returns a sorted list of the files in a directory,
using a cache to avoid reading the directory more often than necessary.
The annotate() routine appends slashes to directories.i�(twarnpy3ks2the dircache module has been removed in Python 3.0t
stackleveliNtlistdirtopendirtannotatetresetcCs
iadS(sReset the cache completely.N(tcache(((s/sys/lib/python2.7/dircache.pyRscCs�yt|\}}t|=Wntk
r;dg}}nXtj|�j}||krvtj|�}|j�n||ft|<|S(s%List directory contents, using cache.i�(RtKeyErrortoststattst_mtimeRtsort(tpathtcached_mtimetlisttmtime((s/sys/lib/python2.7/dircache.pyRs

cCs[xTtt|��D]@}tjjtjj|||��r||d||<qqWdS(s Add '/' suffixes to directories.t/N(trangetlenRRtisdirtjoin(theadRti((s/sys/lib/python2.7/dircache.pyR%s%(
t__doc__twarningsRRt__all__RRRRR(((s/sys/lib/python2.7/dircache.pyt<module>s		

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.