Home | History | Annotate | Download | only in python2.7

Lines Matching refs:cache

1 """Read and cache directory listings.
4 using a cache to avoid reading the directory more often than necessary.
14 cache = {}
17 """Reset the cache completely."""
18 global cache
19 cache = {}
22 """List directory contents, using cache."""
24 cached_mtime, list = cache[path]
25 del cache[path]
32 cache[path] = mtime, list