ipfs/kubo

Verify a file/folder

Open

#9 172 ouverte le 8 août 2022

Voir sur GitHub
 (14 commentaires) (0 réactions) (0 assignés)Go (2 725 forks)batch import
P4exp/experthelp wantedkind/feature

Métriques du dépôt

Stars
 (13 906 stars)
Métriques de merge PR
 (Merge moyen 4j 2h) (28 PRs mergées en 30 j)

Description

Checklist

  • My issue is specific & actionable.
  • I am not suggesting a protocol enhancement.
  • I have searched on the issue tracker for my issue.

Description

It would be nice if I could supply a CID like a regular SHA hash and a file/folder and let kubo fetch the necessary metadata and check the local data for errors.

Rationale

I wrote a feature request for the usage of Kubo in Lutris and I noticed that this would be kinda neat, as they may want to fetch downloads via http(s) and only if this fails fetch them via ipfs.

This way they don't need a hash and a CID, but could just use the CID and have the URL once imported via URL-Store.

Usage

kubo verify --file=/path/to/file /ipfs/CID
kubo verify --ignore-auxiliary=1 --folder=/path/to/folder/ /ipfs/CID 

(Where --ignore-auxiliary=1 in the folder version would ignore any additional files/folders like .git)

kubo verify /ipfs/CID

Would work analog to kubo get where it would search in the ./$CID folder for the file/folder structure.

Edit: Fix language

Guide contributeur