Skip to content
This repository has been archived by the owner. It is now read-only.

duplicate directories #87

Closed
ghost opened this issue Dec 31, 2015 · 3 comments
Closed

duplicate directories #87

ghost opened this issue Dec 31, 2015 · 3 comments
Labels

Comments

@ghost
Copy link

ghost commented Dec 31, 2015

Hi all, I'm wondering what happens to duplicate directories (I've got too much stuff to really try this out, I run out of memory real quick). What I do is that I have a staging area where I put the stuff I add to ipfs, and when I'm done with the add I delete and move new files in. I think the directory hashes change, so I'm a bit afraid of the worst case scenario, which is that it overwrites them instead of adding to the same directory object. Again, I'm not lazy, it's just that I run out memory when I try to operate on my installation. So that's why I'm asking.

@Kubuxu
Copy link

Kubuxu commented Dec 31, 2015

You can use /ipns/ mountpoint, it requires FUSE and is started with ipfs mount.

Then you should be able to copy files/directories directly to /ipns/local/.

Then you can check what is hash of resulting directory using: ipfs name resolve.

Or you mean something else?

If do you add directories itself or the parent directory? If content of directory is the same then it won't use extra object storage. Files inside that directory (if it is different) also will be deduped.

@fazo96
Copy link

fazo96 commented Dec 31, 2015

at the moment the only way to move stuff to IPFS without duplicating it is using the /ipns/local mountpoint and moving stuff in, like @Kubuxu said. Keep in mind that the current implementation of FUSE (used to create the mountpoint) is quite buggy and you may lose your data!

@madavieb
Copy link

madavieb commented May 23, 2017

This issue has been moved to https://discuss.ipfs.io/t/duplicate-directories/373.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants