Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Update documentation #28

Closed
Closed
@daviddias

Description

@daviddias
  • get importer up to the new path + stream format
  • integrate exporter onto js-ipfs
  • create docs of how importer and exporter works

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions