This is the WebDAV client library which is designed like File and Directory Entries API (MDN).
webdav.root.getDirectory('http://localhost:52328/qynnsgspuz6cm2sui/', {}, function (directory) {
directory.createReader().readEntries(function (entries) {
for (const entry of entries) {
console.log(`[${entry.isDirectory ? 'Directory' : 'File'}] ${entry.name}`);
}
}, console.error);
}, console.error);
<script src="webdav.js"></script>
https://github.com/esperecyan/webdav-client/releases
Or
npm install @esperecyan/webdav-client
Or
bower install esperecyan-webdav-client
https://esperecyan.github.io/webdav-client/index.html
- Microsoft Edge
- Firefox
- Firefox ESR
- Opera
- Google Chrome
- Safari
Please Pull Request or open your Issue.
This library is licensed under the Mozilla Public License Version 2.0 (MPL-2.0).