MCPcopy Create free account
hub / github.com/HKUDS/OpenSpace / session_dir

Method session_dir

openspace/communication/attachment_cache.py:28–31  ·  view source on GitHub ↗
(self, session_key: str)

Source from the content-addressed store, hash-verified

26 self.base_dir.mkdir(parents=True, exist_ok=True)
27
28 def session_dir(self, session_key: str) -> Path:
29 directory = self.base_dir / session_key / "attachments"
30 directory.mkdir(parents=True, exist_ok=True)
31 return directory
32
33 def save_bytes(
34 self,

Callers 2

save_bytesMethod · 0.95
copy_local_fileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected