ipfs / ipfs/kubo

Verify a file/folder

Open
#9,172 14 comments 0 reactions 0 assignees View on GitHub
exp/expert help wanted kind/feature P4
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

### Checklist

- [X] My issue is specific & actionable.
- [X] I am not suggesting a protocol enhancement.
- [X] I have searched on the [issue tracker](https://github.com/ipfs/kubo/issues?q=is%3Aissue) 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](https://github.com/lutris/lutris/issues/4414) 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.