Hello
I have a simple Python script that uploads all the files under a directory to IPFS, wrapped in a directory.
Basically:
files = {“file1”: “file1contents”, “file2”: “file2contents”}
response = requests.post(
“https://ipfs.infura.io:5001/api/v0/add?recursive=true&wrap-with-directory=true”,
auth=(“xxx”, “yyy”),
files=files
)
Output is for example:
{“Name”:“file1”,“Hash”:“QmZn…”,“Size”:“10”}
{“Name”:“file2”,“Hash”:“QmZn…”,“Size”:“10”}
{“Name”:"",“Hash”:“QmaG2T9wsrTsA7kH9K4HZLWXnEzpRyYjMDhesZTJfBoEgS”,“Size”:“20”}
So if you go to the hash of the last line, it will take you to a directory with all the files uploaded.
This works perfectly fine with a few hundred files. However, when I load it up with 10,000 files, the output is:
{“Name”:“file1”,“Hash”:“QmZn…”,“Size”:“10”}
{“Name”:“file2”,“Hash”:“QmZn…”,“Size”:“10”}
…
{“Name”:“file9999”,“Hash”:“QmZn…”,“Size”:“10”}
{“Name”:“file10000”,“Hash”:“QmZn…”,“Size”:“10”}
And DOES NOT SHOW the last line (“Name”: “”, the one with the directory CID).
Also, I do not see it in the explorer under my account …
Am I doing something wrong?
Thanks!