kubo/docs/examples
Marcin Rataj 506cc6e70f feat(files): wire Import.UnixFSChunker and UnixFSDirectoryMaxLinks to MFS
`ipfs files` commands now respect these Import.* config options:
- UnixFSChunker: configures chunk size for `files write`
- UnixFSDirectoryMaxLinks: triggers HAMT sharding in `files mkdir`
- UnixFSHAMTDirectorySizeEstimation: controls size estimation mode

previously, MFS used hardcoded defaults ignoring user config.

changes:
- config/import.go: add UnixFSSplitterFunc() returning chunk.SplitterGen
- core/node/core.go: pass chunker, maxLinks, sizeEstimationMode to
  mfs.NewRoot() via new boxo RootOption API
- core/commands/files.go: pass maxLinks and sizeEstimationMode to
  mfs.Mkdir() and ensureContainingDirectoryExists(); document that
  UnixFSFileMaxLinks doesn't apply to files write (trickle DAG limitation)
- test/cli/files_test.go: add tests for UnixFSDirectoryMaxLinks and
  UnixFSChunker, including CID parity test with `ipfs add --trickle`

related: boxo@54e044f1b265
2026-02-02 02:00:02 +01:00
..
example-folder Cosmetic fixups in examples (#8325) 2021-08-27 11:55:26 -04:00
kubo-as-a-library feat(files): wire Import.UnixFSChunker and UnixFSDirectoryMaxLinks to MFS 2026-02-02 02:00:02 +01:00
go-ipfs-as-a-library chore: update kubo-as-a-library example 2022-07-25 16:48:52 +02:00