Go-ipfs: Add + Support an `offset` flag for `ipfs cat`

Created on 9 Jan 2017  路  6Comments  路  Source: ipfs/go-ipfs

What the title suggests :)

help wanted kinenhancement

Most helpful comment

Good question. What about simply treating the concatenation of both files as a single file for the offset?

All 6 comments

Surely ipfs cat ... | tail -c +2000 is enough for this...?

We need to have support for it coming from the http-api too.

Would Range headers satisfy this need on the http api? We get these for free with go's net/http. They're already used e.g. for skipping in a video/audio file through the gateway.

@diasdavid how would we handle calling ipfs cat on multiple hashes? like ipfs cat QmdrSmgViWKCjRntzsoiFhzQ1Wsce2ig5nZErS7SvXr9Ng QmWJ7ot9xrhkSHwCqm9XAhnXe944nXYQQ3tCSmXfnxUWNj ?

Good question. What about simply treating the concatenation of both files as a single file for the offset?

Done in #4538

Was this page helpful?
0 / 5 - 0 ratings