Comments (4)
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.
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.
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.
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)
- An in-range update of async is breaking the build 🚨
- An in-range update of cids is breaking the build 🚨
- update readme HOT 2
- add methods for reading and writting data from an offset HOT 4
- Needs to learn how to take in CIDs, not just multihashes HOT 1
- Support for cat'ing and get'ing subtrees. HOT 1
- exporter: unable to use IPLDResolver .get(path) for inexistent paths HOT 3
- New test added fails HOT 2
- Browser performance issue HOT 4
- README question HOT 1
- hash field missing in files but present for directories HOT 3
- Some tests are failing on Windows
- Builder test are failing
- Update importer examples in README.md HOT 1
- feat: .get(<cid array>) from the DAG API HOT 6
- Make rabin dependency optional HOT 1
- Setting offset in catReadableStream results in incorrect stream length HOT 2
- Using rabin chunker in browser error swallowed? HOT 2
- Modularization not necessary HOT 4
- Deprecate this module?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-ipfs-unixfs-engine.