Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repository linking to files. #2476

Closed
palkeo opened this issue Mar 15, 2016 · 2 comments
Closed

Repository linking to files. #2476

palkeo opened this issue Mar 15, 2016 · 2 comments

Comments

@palkeo
Copy link
Contributor

palkeo commented Mar 15, 2016

Hi,

I suppose that a very common use case for IPFS would be to share huge files/directories.
At the moment, if you want to do that IPFS will copy all your data to its own repository.

Would it be possible to optionally have IPFS link to the actual data on disk instead of copying it ? For the tree representing the directory it would have the leaf nodes link to a filename:offset:length, and only store the intermediate nodes (which would represent a very small overhead because the actual data are leaf nodes).
Alternatively, we could also have an implementation of a repository that would store metadata (and intermediate blocks) in « .ipfs » files in your filesystem along with the files you share.

That would cause issues if you move or modify the files you added because the repository will point to invalid data. But it would be very useful for sharing huge directories that you can't afford to copy to IPFS which is a huge wast of space.

For people who just want to share quickly some static files they have in their filesystem, it would be faster and would not copy everything.

What do you think ?

@whyrusleeping
Copy link
Member

see #875

@palkeo
Copy link
Contributor Author

palkeo commented Mar 15, 2016

Cool, thanks !

@palkeo palkeo closed this as completed Mar 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants