MCPcopy Index your code
hub / github.com/QData/TextAttack / path_in_cache

Function path_in_cache

textattack/shared/utils/install.py:17–22  ·  view source on GitHub ↗
(file_path)

Source from the content-addressed store, hash-verified

15
16
17def path_in_cache(file_path):
18 try:
19 os.makedirs(TEXTATTACK_CACHE_DIR)
20 except FileExistsError: # cache path exists
21 pass
22 return os.path.join(TEXTATTACK_CACHE_DIR, file_path)
23
24
25def s3_url(uri):

Callers 3

download_from_s3Function · 0.85
download_from_urlFunction · 0.85
_post_install_if_neededFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected