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

Mention that files.add has a pin option #294

Closed
@Powersource

Description

@Powersource

To quote lidel's code in irc:
ipfs.files.add(Buffer.from('auto-pin')).then(results => ipfs.pin.ls(results[0].hash).then(pins => console.dir(pins))).catch(console.error)
vs.
ipfs.files.add(Buffer.from('no-auto-pin'), {pin: false}).then(results => ipfs.pin.ls(results[0].hash).then(pins => console.dir(pins))).catch(console.error)

Should also mention that it automatically pins. (Do I have to add recursively to get it to pin recursively?)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions