Skip to content

os-js/osjs-webdav-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Documentation

See the Official Manuals for articles, tutorials and guides.

Links