MCPcopy
hub / github.com/omkarcloud/botasaurus / get_cached_files

Function get_cached_files

botasaurus/cache.py:159–164  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

157 create_directory_if_not_exists(fn_cache_dir)
158
159def get_cached_files(func):
160 fn_name = getfnname(func)
161 fn_cache_dir = f'{Cache.cache_directory}{fn_name}/'
162 cache_dir = relative_path(fn_cache_dir)
163 results = get_files_without_json_extension(cache_dir)
164 return results
165
166def _delete_items_by_filter(func, items, should_delete_item):
167 # Filter items to be tested from cache

Callers 3

get_items_hashesMethod · 0.85

Calls 3

getfnnameFunction · 0.85
relative_pathFunction · 0.70

Tested by

no test coverage detected