MCPcopy Create free account
hub / github.com/vastsa/FileCodeBox / __init__

Method __init__

core/storage.py:1016–1022  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1014 _instance: Optional["WebDAVFileStorage"] = None
1015
1016 def __init__(self):
1017 if not hasattr(self, "_initialized"):
1018 self.base_url = settings.webdav_url.rstrip("/") + "/"
1019 self.auth = aiohttp.BasicAuth(
1020 login=settings.webdav_username, password=settings.webdav_password
1021 )
1022 self._initialized = True
1023
1024 def _build_url(self, path: str) -> str:
1025 encoded_path = quote(str(path.replace("\\", "/").lstrip("/")).lstrip("/"))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected