How to retrieve the CID of a block file

Answered here: .ipfs/blocks enlarged to 2TB despite MaxStorage setting, discovering cid to ds key conversion - #2 by hector