GithubHelp home page GithubHelp logo

Comments (4)

whyrusleeping avatar whyrusleeping commented on June 3, 2024

we encode that information in the unixfs protobuf and store it in the data segment of the merkledag node: https://github.com/ipfs/go-ipfs/blob/master/unixfs/format.go

from js-ipfs-unixfs-engine.

daviddias avatar daviddias commented on June 3, 2024

Where is this metadata schema used throughout the files api routines https://github.com/ipfs/go-ipfs/blob/master/unixfs/format.go#L17?

from js-ipfs-unixfs-engine.

daviddias avatar daviddias commented on June 3, 2024

One more question. When we have a directory, we use the Links file on the MerkleDAG.proto to point to the files and not the data field on the unixFS proto, right?

from js-ipfs-unixfs-engine.

daviddias avatar daviddias commented on June 3, 2024

Another one: Why do symlinks have on their data field the name of the file they are symlinking (just that) and why is that name appended by \u0018\b?

I've found what is the actual problem, although a symlink has data, namely the file name which it is symlinking, it is saying that its filesize is 0, although the alg to calculate the filesize is the sum of block sizes + the length of its own data https://github.com/ipfs/go-ipfs/blob/master/unixfs/format.go#L172-L174 . So, this looks like a bug, or we remove that data from the symlink (which so far, I didn't understand why it is useful), or we make its length right. Thoughts?

from js-ipfs-unixfs-engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.