This repository was archived by the owner on Aug 12, 2020. It is now read-only.
  
  
  
  
  
Description
Some notes:
var importer = new unixFSE.import()
    importer.add({path: , stream:)
        chunk the file, store the hash
    importer.finish()
    - default “no flush”, in the future, support flush
    - each time a file is hashed and added, emit an event with that filepath and hash
    - when the dir gets added, also emit an event for that
    - use a env variable to use main IPFS repo, just for the tests
    - I can sort (at ipfs-core) before printing :)
var exporter = new unixFSE.export()
    each time it hits a file emit an event with a file and write to the stream
 
Proposal:
I want to rename this module to unixfs-engine, because it is what it really is, the agnostic file importer will be done later, this is not prepared in any sense to support different layouts (nor do we know yet how to achieve that).