Skip to content

Instantly share code, notes, and snippets.

@OliverUv
Created September 25, 2018 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OliverUv/a25332c11c88296a7c3b16ad576c110d to your computer and use it in GitHub Desktop.
Save OliverUv/a25332c11c88296a7c3b16ad576c110d to your computer and use it in GitHub Desktop.
STORED DIR
{ path: 'test',
hash: 'QmQ15Nxg6GEYnPGq6H3ZeCBAdZX5pE25er5erLF4JpcyV2',
size: 68 }
STORED FILE
{ path: '/test/hello.txt',
hash: 'QmNyJpQkU1cEkBwMDhDNFstr42q55mqG5GE5Mgwug4xyGk',
size: 13 }
///////
In path '/test/hello.txt' stored:
hash: QmNyJpQkU1cEkBwMDhDNFstr42q55mqG5GE5Mgwug4xyGk
data: world
///////
As path 'test' stored dir:
hash: QmQ15Nxg6GEYnPGq6H3ZeCBAdZX5pE25er5erLF4JpcyV2
ls:
[ { name: 'hello.txt', type: 0, hash: '', size: 0 } ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment