Lines Matching refs:cache
63 def status(item, cache=None): argument
65 p = Path(cache or cache_dir()) / item["path"]
71 def cached_path(name, cache=None, items=None): argument
75 return Path(cache or cache_dir()) / it["path"] if status(it, cache) == "ok" else None
79 def group_dir(group, cache=None, items=None): argument
82 if not its or any(status(it, cache) != "ok" for it in its):
84 dirs = {(Path(cache or cache_dir()) / it["path"]).parent for it in its}
88 def _download(item, cache, opener): argument
92 dest = Path(cache) / item["path"]
110 def fetch(names=None, offline=False, cache=None, opener=None, items=None): argument
114 cache = Path(cache or cache_dir())
120 if status(it, cache) == "ok":
126 _download(it, cache, opener)