Module dircache
[hide private]
[frames] | no frames]

Module dircache

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.

Functions [hide private]
Reset the cache completely.
List directory contents, using cache.
List directory contents, using cache.
annotate(head, list)
Add '/' suffixes to directories.
Variables [hide private]
  cache = {}

Imports: os