0.1.5 • Published 3 years ago

@osjs/ftp-adapter v0.1.5

Weekly downloads
24
License
MIT
Repository
github
Last release
3 years ago

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 FTP VFS Adapter

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

This is a work in progress

Installation

npm install @osjs/ftp-adapter

Usage

In your src/server/index.js bootstrap file:

const ftpAdapter = require('@osjs/ftp-adapter');

osjs.register(VFSServiceProvider, {
  args: {
    adapters: {
      ftp: ftpAdapter
    }
  }
});

Then create a mountpoint in your configuration files:

// src/server/config.js
{
  vfs: {
    mountpoints: [{
      name: 'myftp',
      adapter: 'ftp',
      attributes: {
        connection: {
          host: 'localhost',
          user: 'osjs',
          password: 'osjs',
          secure: false
        }
      }
     }]
   }
}

// src/client/config.js
{
  vfs: {
    mountpoints: [{
      name: 'myftp',
      label: 'My FTP Drive'
     }]
   }
}

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

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

4 years ago

0.1.2

5 years ago

0.1.1

5 years ago