Sha256: 8a023960a05ed35cc14913a262d3056d9014f03867aa567a56af10ac706911fe
Contents?: true
Size: 295 Bytes
Versions: 3
Compression:
Stored size: 295 Bytes
Contents
require 'ipfs-api' ipfs = IPFS::Connection.new # add a directory ipfs.add Dir.new('data') # retrieve contents of a file print ipfs.cat('QmfM2r8seH2GiRaC4esTjeraXEachRt8ZsSeGaWTPLyMoG') # retrieve the whole directory ipfs.get('QmSh4Xjoy16v6XmnREE1yCrPM1dnizZc2h6LfrqXsnbBV7', 'copy-of-data')
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ipfs-api-0.4.0 | examples/basic.rb |
ipfs-api-0.3.0 | examples/basic.rb |
ipfs-api-0.2.0 | examples/basic.rb |