Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @{
- ViewData["Title"] = "Index";
- }
- <h1>@ViewData["Title"]</h1>
- <script src="~/js/require.js"></script>
- <script type="text/javascript">
- function edit() {
- const { createClient } = require("webdav");
- const client = createClient(
- "https://localhost/webdavdir",
- {
- username: "marie",
- password: "myS3curePa$$w0rd"
- }
- );
- //alert("3");
- //// Get directory contents
- //const directoryItems = await client.getDirectoryContents("/");
- //console.log(directoryItems);
- }
- </script>
- <input type="button" value="Edit Document" onclick="edit()" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement