delightful-shoe-13431
07/01/2024, 11:52 AMimport { createClient } from "webdav";
// Set NODE_TLS_REJECT_UNAUTHORIZED to 0
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0';
const client = createClient("https://webdav.example.com", {
authType: "digest",
username: "myusername",
password: "mypassword"
});
// Get directory contents
const directoryItems = await client.getDirectoryContents("/");
console.log(directoryItems);
Any thoughts much appreciated!