da4b1f86f4
This will display the formatted data of a MerkleDag (links and data)
12 lines
364 B
C
12 lines
364 B
C
#pragma once
|
|
|
|
/**
|
|
* get a file by its hash, and write the data to a file
|
|
* @param hash the base58 multihash of the cid
|
|
* @param file_name the file name to write to
|
|
* @returns true(1) on success
|
|
*/
|
|
int ipfs_exporter_to_file(const unsigned char* hash, const char* file_name, const struct FSRepo* fs_repo);
|
|
|
|
int ipfs_exporter_object_get(int argc, char** argv);
|
|
|