ERC721 how to set unique ipfs CID per minted token

There's also this technique described here: How to: ERC-1155 ID Substitution for Token URI - #6 by wighawag
But at the moment I'm using Pinata to upload the files, so I'm not sure i can add them into directories from there.