Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example: turn directory into a CAR with UnixFS DAG #663

Open
lidel opened this issue Aug 27, 2024 · 1 comment
Open

example: turn directory into a CAR with UnixFS DAG #663

lidel opened this issue Aug 27, 2024 · 1 comment
Labels
need/triage Needs initial labeling and prioritization

Comments

@lidel
Copy link
Member

lidel commented Aug 27, 2024

Problem

We have many unixfs implementations, and it is extremely confusing for new developers to understand what they should use and why. (cc @2color)

Proposed improvement

The ./exmaples should have an example of ipfs add + ipfs dag export equivalent for reading a file or a directory from local filesystem, and turning it into a CAR with UnixFS DAG that was properly chunked / HAMT-sharded.

The example should be a CLI tool that accepts same flags as ipfs add, demonstrating how to adjust chunker, hash function, or decide if mode/mtime should be preserved.

@lidel lidel added the need/triage Needs initial labeling and prioritization label Aug 27, 2024
@lidel
Copy link
Member Author

lidel commented Aug 27, 2024

@gammazero thoughts which APIs should be used in this example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/triage Needs initial labeling and prioritization
Projects
None yet
Development

No branches or pull requests

1 participant