-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Adding files that are symlinks directly #2839
Comments
@Kubuxu this is resolved now, right? |
I am reopening this issue because the fix causes problems for me in my filestore code.
The original issue reported is due to a bug in how the special case of Please also see my comments on the pull request #2897 as it is now seams impossible to add symbolic links to the The issue comes down to what do you want this to do:
Due you want this at add the symbolic link (the original behavior) or the file the link is pointed to (the new behavior)? How I deal with this change in the filestore code will depend on the answer to that question. @jbenet, you might want to take a look at this. |
You can add symbolic links inside directories. Is there any usage pattern where user wants to add a symbolic link, instead of the file referenced by this link if he references the symbolic link directly? Looks symlinks to files are always resolved.
|
|
This needs to be reverted. |
@Kubuxu I am going to go ahead and create a pull request that reverts the fix for this and directly fixes the problem described in the description so adding the current directory works as expected. |
@kevina Thanks, can you base it of the v0.4.3-rc3 tag and PR to |
@Kubuxu will do |
Okay have a look at #3135 . |
The original issue of "Recursive adding from directory that is symlink is broken" is. If you reference a symlink directly it will still be added as a symbolic link, I think this is the desirable behavior. @Kubuxu can we close this? |
Yes. |
Hi, Can someone please help me fix this issue? |
Unix commands when you reference a symlink directly resolve it. IPFS does not.
Example:
cp
resolved the symlink and copied whole directory, IPFS added an meaningless symlink.The text was updated successfully, but these errors were encountered: