()
| 986 | } |
| 987 | |
| 988 | function buildWebdavAuthHeader(): string | null { |
| 989 | const { webdavUsername, webdavPassword } = settings.store as { |
| 990 | webdavUsername?: string; |
| 991 | webdavPassword?: string; |
| 992 | }; |
| 993 | if (webdavUsername?.trim() && webdavPassword?.trim()) { |
| 994 | return `Basic ${btoa(`${webdavUsername.trim()}:${webdavPassword.trim()}`)}`; |
| 995 | } |
| 996 | return null; |
| 997 | } |
| 998 | |
| 999 | async function createWebdavShare(relativePath: string, serverOrigin: string, filename: string): Promise<string> { |
| 1000 | const { webdavServerType, webdavShareType } = settings.store as { |
no outgoing calls
no test coverage detected