Generate CAR Files
Last updated
Was this helpful?
Last updated
Was this helpful?
A CAR file is an independent unit to be sent to storage providers, swan-client provides four different ways to generate CAR files, and the CAR files will be imported to the lotus.
🔔 This option can split a file under the source directory or the files in a whole directory to one or more car file(s) in the output directory.
Files generated after this step:
manifest.csv
: A metadata file generated by graphsplit API
car.json
: contains information for both source files and CAR files
car.csv
: contains information for both source files and CAR files
[dataCID].car
: if --parent-path=true
is set, the CAR files are generated based on the whole directory, otherwise based on each file according to the file size and --slice-size
Credits should be given to FileDrive Team. More information can be found .
🔔 This option will generate a CAR file for each file in --input-dir
.
🔔 A running Lotus node is required.
Files generated after this step:
car.json
: contains information for both source files and CAR files
car.csv
: contains information for both source files and CAR files
[source-file-name].car
: each source file has a related CAR file
🔔 This option will merge files under the source directory to one CAR file in the output directory using IPFS API.
🔔 A running IPFS node is required.
Files generated after this step:
car.json
: contains information for the CAR file
car.csv
: contains information for the CAR file
[dataCID].car
: the source file(s) will be merged into this CAR file
🔔 ipfs-car
package is required: sudo npm install -g ipfs-car
🔔 This option will merge files under the source directory to one CAR file in the output directory using the ipfs-car
command.
Files generated after this step:
car.json
: contains information for the CAR file
car.csv
: contains information for the CAR file
[source-files-dir-name].car
: the source file(s) will be merged into this CAR file