UnixFS duplicate paths during import
- Dominant language
- HTML
- Stars
- 1.2k
- Forks
- 247
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 4
Description
Following on from https://github.com/ipfs/js-ipfs/issues/2622
You can have the situation where a user tries to build a UnixFS directory with duplicate paths:
```javascript
await ipfs.add([{
path: 'folder/file',
content: Buffer.from('hello world')
}, {
path: 'folder/file',
content: Buffer.from('another hello world')
}])
```
Current behaviour is last-file-wins for both `go-IPFS` and `js-IPFS`.
Should this be the case or should they error? The API makes it trivial to do this kind of operation, but file systems typically do not support entries with duplicate names.
Once there is an agreement, this should be documented in the spec order for DAGs to be recreated without reference to `go-IPFS` or `js-IPFS`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.