https://discord.gg/botpress logo
Hello, I would like to use Webdav as a place to l...
# 💻developers
d
Hello, I would like to use Webdav as a place to load and save files from/to, is this something people do with Botpress? Does bot press support this or would sftp be a better method? I tried connecting to webdav but I guess Botpress does not support it?
Copy code
import { createClient } from "webdav";
// Set NODE_TLS_REJECT_UNAUTHORIZED to 0
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0';

const client = createClient("WebdavUrl", {
    authType: "digest",
    username: "myusername",
    password: "mypassword"
});

// Get directory contents
const directoryItems = await client.getDirectoryContents("/");
console.log(directoryItems);
Any ideas much appreciated.
2 Views