How can I find the size of pinned files?

I have pinned several files to my server but I did not create the files on my server, how do I view each file’s size?

I understand that normally I would run ipfs.files.stat(pathHere), but I don’t know the path nor any of the file’s names, just their CIDs.

The path should just be /ipfs/<cid>, so ipfs.files.stat('/ipfs/<cid>')

1 Like

Ahh, didn’t realize that. Thank you :+1: