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
Description
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?)