项目作者: os-js

项目描述 :
OS.js FTP VFS Adapter
高级语言: JavaScript
项目地址: git://github.com/os-js/osjs-ftp-adapter.git
创建时间: 2018-12-30T21:28:05Z
项目社区:https://github.com/os-js/osjs-ftp-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 FTP VFS Adapter

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

This is a work in progress

Installation

  1. npm install @osjs/ftp-adapter

Usage

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

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

Then create a mountpoint in your configuration files:

  1. // src/server/config.js
  2. {
  3. vfs: {
  4. mountpoints: [{
  5. name: 'myftp',
  6. adapter: 'ftp',
  7. attributes: {
  8. connection: {
  9. host: 'localhost',
  10. user: 'osjs',
  11. password: 'osjs',
  12. secure: false
  13. }
  14. }
  15. }]
  16. }
  17. }
  18. // src/client/config.js
  19. {
  20. vfs: {
  21. mountpoints: [{
  22. name: 'myftp',
  23. label: 'My FTP Drive'
  24. }]
  25. }
  26. }

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

Contribution

Documentation

See the Official Manuals for articles, tutorials and guides.