(self)
| 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("/")) |
nothing calls this directly
no outgoing calls
no test coverage detected