项目作者: os-js

项目描述 :
OS.js WebDAV VFS Adapter
高级语言: JavaScript
项目地址: git://github.com/os-js/osjs-webdav-adapter.git
创建时间: 2018-07-23T12:14:49Z
项目社区:https://github.com/os-js/osjs-webdav-adapter

开源协议:Other

下载



OS.js Logo

OS.js is an open-source web desktop platform with a window manager, application APIs, GUI toolkit, filesystem abstractions and much more.

Support
Support
Donate
Donate
Community

OS.js WebDAV VFS Adapter

This is the WebDAV VFS (Server) Adapter for OS.js.

Installation

  1. npm install @osjs/webdav-adapter

Usage

  1. const webdavAdapter = require('@osjs/webdav-adapter');
  2. osjs.register(VFSServiceProvider, {
  3. args: {
  4. adapters: {
  5. webdav: webdavAdapter
  6. }
  7. }
  8. });

Then create a mountpoint. Example using ownCloud:

  1. // src/server/config.js
  2. {
  3. vfs: {
  4. mountpoints: [{
  5. name: 'owncloud',
  6. label: 'ownCloud',
  7. adapter: 'webdav',
  8. attributes: {
  9. connection: {
  10. uri: 'http://localhost:8002',
  11. username: 'osjs',
  12. password: 'osjs',
  13. access_token: null,
  14. prefix: '/remote.php/webdav'
  15. }
  16. }
  17. }]
  18. }
  19. }
  20. // src/client/config.js
  21. {
  22. vfs: {
  23. mountpoints: [{
  24. name: 'owncloud',
  25. label: 'ownCloud'
  26. }]
  27. }
  28. }

At some point users can create their own server mounts via the client.

Contribution

Documentation

See the Official Manuals for articles, tutorials and guides.