MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / get_location

Method get_location

aura/cache.py:147–161  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

145
146 @classmethod
147 def get_location(cls) -> Optional[Path]:
148 if cls.DISABLE_CACHE:
149 return None
150
151 if cls.__location is None:
152 c = os.environ.get("AURA_CACHE_LOCATION") or config.CFG["aura"].get("cache_location")
153 if c:
154 c = Path(c).expanduser().resolve()
155 logger.debug(f"Cache location set to {c}")
156
157 if not c.exists():
158 c.mkdir(parents=True)
159 cls.__location = c
160
161 return cls.__location
162
163 def save_metadata(self):
164 self.metadata_location.write_text(dumps(self.metadata))

Callers 11

cache_file_locationMethod · 0.95
metadata_locationMethod · 0.95
iter_itemsMethod · 0.80
cleanupMethod · 0.80
proxyMethod · 0.80
proxyMethod · 0.80
proxyMethod · 0.80
proxyMethod · 0.80
proxyMethod · 0.80
proxyMethod · 0.80

Calls 2

getMethod · 0.80
existsMethod · 0.45

Tested by 1