mň %U˛Ic@sLdZdkZddddgZhad„Zd„ZeZd„ZdS( 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.NtlistdirtopendirtannotatetresetcCs hadS(sReset the cache completely.N(tcache(((t%/data/zmath/lib/python2.4/dircache.pyR scCsŽyt|\}}t|=Wn tj odg}}nXti|ƒi}||joti |ƒ}|i ƒn||ft|<|S(s%List directory contents, using cache.i˙˙˙˙N( Rtpatht cached_mtimetlisttKeyErrortoststattst_mtimetmtimeRtsort(RRRR ((RRs  cCs]xVtt|ƒƒD]B}tiitii|||ƒƒo||d||