Entries with a identity codec CID return identity entries.
identity
These are entries where the data payload is stored in the CID itself, otherwise they are identical to RawNodes.
The CID of the entry
A disambiguator to allow TypeScript to work out the type of the entry.
if (entry.type === 'file') { // access UnixFSFile properties safely}if (entry.type === 'directory') { // access UnixFSDirectory properties safely} Copy
if (entry.type === 'file') { // access UnixFSFile properties safely}if (entry.type === 'directory') { // access UnixFSDirectory properties safely}
Optional
Entries with a
identitycodec CID return identity entries.These are entries where the data payload is stored in the CID itself, otherwise they are identical to RawNodes.