My app uses the following code to save to IPFS with CID v1:
for await (const file of await ipfs.add({
path:file_name,
content: Buffer.from(data),
}, {
pin: false,
cidVersion:1,
})) {}
How do I retrieve ths hash from file
? Is it in file.cid.mutihash.toString()?