How can I curl add directory include all files in it

Hi,

I got a problem when I tried to curl add directory to infura, there are 5 files in the folder.
I read infura document but was still confused (https://infura.io/docs/ipfs/post/add)

curl “https://ipfs.infura.io:5001/api/v0/add?pin=true&recursive=true&wrap-with-directory=true” -u “myProjectId:myProjectSecretKey” -X POST -F file=@myFolder/

I tried to replace “myFolder” using “myFolder/1.jpg”, I will get one hash for a file and another hash for the directory so how about my other files in the folder? Do I have to add all of them one by one?

Thanks

Hi there, @porche120 Welcome to the community.
Here’s the updated documentation that should provide some better insights. https://infura.io/docs/ipfs#operation/add