perry-mitchell / webdav-fs

Node fs wrapper for WebDAV
MIT License
94 stars 21 forks source link

Authentication example does not work #71

Closed Choppel closed 5 years ago

Choppel commented 5 years ago

The example states that a connection can be made like this

var wfs = require("webdav-fs")(
    "http://example.com/webdav/",
    "username",
    "password"
);

But it should be like this (second param needs to be an object; see underlying module https://github.com/perry-mitchell/webdav-client)

var wfs = require("webdav-fs")(
    "http://example.com/webdav/",
    {
      "username": "Bob",
      "password": "Belcher"
    }
);
perry-mitchell commented 5 years ago

I updated the docs, thanks @Choppel