@osjs/webdav-adapter
v1.0.5
Published
WebDAV VFS Adapter for OS.js
Downloads
9
Readme
OS.js is an open-source web desktop platform with a window manager, application APIs, GUI toolkit, filesystem abstractions and much more.
OS.js WebDAV VFS Adapter
This is the WebDAV VFS (Server) Adapter for OS.js.
Installation
npm install @osjs/webdav-adapter
Usage
const webdavAdapter = require('@osjs/webdav-adapter');
osjs.register(VFSServiceProvider, {
args: {
adapters: {
webdav: webdavAdapter
}
}
});
Then create a mountpoint. Example using ownCloud:
// src/server/config.js
{
vfs: {
mountpoints: [{
name: 'owncloud',
label: 'ownCloud',
adapter: 'webdav',
attributes: {
connection: {
uri: 'http://localhost:8002',
username: 'osjs',
password: 'osjs',
access_token: null,
prefix: '/remote.php/webdav'
}
}
}]
}
}
// src/client/config.js
{
vfs: {
mountpoints: [{
name: 'owncloud',
label: 'ownCloud'
}]
}
}
At some point users can create their own server mounts via the client.
Contribution
- Sponsor on Github
- Become a Patreon
- Support on Open Collective
- Contribution Guide
Documentation
See the Official Manuals for articles, tutorials and guides.