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

"Add to parent" type feature #24

Open
TheDiscordian opened this issue Mar 19, 2021 · 3 comments
Open

"Add to parent" type feature #24

TheDiscordian opened this issue Mar 19, 2021 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@TheDiscordian
Copy link
Owner

Rome Silvanus in a chat room has asked for a feature like so:

Upon adding a directory, add it to the parent in MFS, not just the root. So /home/user/dir1/dir2, when added, would create a dir in mfs like /ipfs-sync/dir1/dir2, but ONLY sync dir2's data, retaining dir1 as the parent directory. This way people can simply do things like adding select directories out of something like Google Drive, and having the same tree accessible, with non-shared directories omitted.

Currently this can be solved with symlinks on the FS itself. Is there any interest in this feature?

@TheDiscordian TheDiscordian added the enhancement New feature or request label Mar 19, 2021
@TheDiscordian
Copy link
Owner Author

AddToParent could be the flag added for each dir that wants to be added to the parent dir in MFS.

@TheDiscordian
Copy link
Owner Author

For this feature to be stable, it should expect users to enable/disable this after sync, so we'll need to ensure the MFS is setup correctly upon change.

@RomeSilvanus
Copy link

RomeSilvanus commented Mar 19, 2021

I want to add to this. My main motivation is to be able to add one big folder, basically in chunks, by adding the individual subfolders in the config file.
This way ipfs-sync can finish adding one folder after the other and it will be reachable over IPFS without the need to wait hash over the whole big root directory first.

It'll still take ages for my data set, but at least it's faster than the alternative.

@TheDiscordian TheDiscordian added this to the v1.0.0 milestone Mar 22, 2021
@TheDiscordian TheDiscordian added the good first issue Good for newcomers label Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants