upload-dir
Uploads an entire directory of files.
Parameters
-n
: The network to check. Usemainnet
.-t
: The token to use when uploading.-w
: Your private key.--index-file
: Name of the file to use as an index for manifests.--provider-url
: Optional RPC URL to use.
Example
irys upload-dir ./myImages \
-t ethereum \
-w bf20......c9885307
Downloading
Files uploaded via irys upload-dir
can be retrieved in one of two ways.
- Creating a URL with the format
https://gateway.irys.xyz/[manifest-id]/[original-file-name]
. - Creating a URL using the transaction ID of each individual file uploaded with the format
https://gateway.irys.xyz/[transacton-id]
After a successful folder upload, two files are written to your local project directory:
[folder_name].csv
[folder_name].json
The example below highlights a folder called “llama_folder” with a total of 5 files in it. The transaction id for each file can be used to retrieve the uploaded data by forming a URL with the format https://gateway.irys.xyz]/[transaction-id]