ipfs / ipfs/kubo

is that one super-powerful `ipfs.addAll` be possible?

Open
#9,301 1 comment 1 reaction 0 assignees View on GitHub
exp/intermediate P2
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

is that one super-powerful `ipfs.addAll` be possible?

be able to add new files into the IPFS system, also add links to existing objects (with CID)

this is Javascript API, but need go-ipfs server side support first;

```js
ipfs.addAll([
{ path: 'author-blog/index.html', content: 'top index content', },
{ path: 'author-blog/rss.xml', content: 'the updated top level rss', },
{ path: 'author-blog/new-post/index.html', content: 'the new blog post', },
{ path: 'author-blog/new-post/pic1.png', content: 'the new blog post's assets', },
{ path: 'author-blog/new-post/pic2.jpeg', content: 'the new blog post's assets', },

// ... and can ipfs.addAll support add existing CIDs?
{ path: 'author-blog/previous-post', link: CID.parse('another-existing-cid-from-previous-publication') },
{ path: 'author-blog/previous-post2', link: CID.parse('more-existing-cids') },
...
])
```

_Originally posted by @tx0c in https://github.com/ipfs/kubo/issues/9294#issuecomment-1255338281_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.