ipfs-mfs-sync
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

js-ipfs-mfs-sync

Synchronize between MFS and the filesystem, pull or push.

import MFSSync from 'ipfs-mfs-sync'
import IPFS from 'ipfs-core'

const ipfs = await IPFS.create()

const sync = new MFSSync(ipfs)

for(const {op, path} of sync.fromFSToMFS('./example', '/mfs-folder')) {
  if(op == 'remove') {
    console.log('Removed file:', path)
  }
}

Readme

Keywords

Package Sidebar

Install

npm i ipfs-mfs-sync

Weekly Downloads

1

Version

1.1.0

License

AGPL-3.0

Unpacked Size

53.8 kB

Total Files

13

Last publish

Collaborators

  • rangermauve