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

Method delete_items

botasaurus/cache.py:445–451  ·  view source on GitHub ↗

Remove a specific cache file.

(func, items)

Source from the content-addressed store, hash-verified

443
444 @staticmethod
445 def delete_items(func, items):
446 """Remove a specific cache file."""
447 hashes = Cache.get_items_hashes(func, items)
448 fn_name = getfnname(func)
449 paths = [relative_path(f'{Cache.cache_directory}{fn_name}/{r}.json') for r in hashes]
450 _delete_items(paths)
451 return len(hashes)
452
453 @staticmethod
454 def delete_items_by_hashes(func, hashes):

Callers 1

_delete_items_by_filterFunction · 0.80

Calls 4

getfnnameFunction · 0.85
_delete_itemsFunction · 0.85
get_items_hashesMethod · 0.80
relative_pathFunction · 0.70

Tested by

no test coverage detected