For those who might find it interesting:
I wrote a small smart contract that wraps any content from a single chunk into a ipfs-style hash.
It also supports hashing folders with different files.
I wrote this because I want to be able to validate the content of a small ipfs-file on chain. Given this file is in a larger folder structure.
It is a very crude implementation and suits my needs for now but someone might find it useful!
Prior discussion about this topic: Manually calculate the IPFS CID v2