ipld / ipld/go-car

car extract -f CID --> extract the CID always including folder, subfolder and files in the filesystem --> Retain the directory structure of the CID

Open
#542 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
175
Forks
54
Avg merge
6d 5h
Merged PRs (30d)
4

Description

When the CID is a directory which include files and folders and subfolders it is realy usefull when extracting the CID to filesystem with CLI command `car extract -f CID` it would keep the same directory structure and folders and subfolders are created in the filesystem.

When I download the CID with kubo or ipfs-desktop into a tar file, the folders and subfolders of the CID are also created.
This way it is possible to create the same CID again when uploading all to ipfs. This is very useful.

Please extract a CID wrapped in a directory always with folder (name of the CID) and files, folders and subfolders, …..

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the CLI entry point for `car extract -f CID` and trace how a directory CID is written to the filesystem. Compare the current behavior with the issue’s described Kubo or IPFS Desktop tar extraction, then verify that extraction preserves the CID directory, nested folders, and files so the content can be uploaded again with the same structure.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.