-
-
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
Fixed: On windows 'ipfs add -r .' used the full path #2135
Conversation
Previously 'ipfs add -r .' created an ipfs node with the full path of the directory as the root node (e.g. C:\Users\someone\yourdatadirtoshare\ ), from now on, it won't include the full path of the root directory in the ipfs nodes.
There were the following issues with your Pull Request
Guidelines and a script are available to help. Your feedback on GitCop is welcome on this issue. This message was auto-generated by https://gitcop.com |
Good catch, that's the one test case that didn't come up before. |
Using the code in this PR, running
Using the
|
If the latter is the intention, I'm okay changing it to the filepath.Base version. |
I believe when using the dot, the directory we're inside should be added the same as with any other command targeting it, if the contents inside the directory are the target I think
|
@palesz could you sign off your commit? (see the instructions posted by gitcop) |
@palesz |
@djdv yes, the output in the second half of your post is as expected. |
Correction: For clarity only that line (https://github.com/ipfs/go-ipfs/blob/master/commands/cli/parse.go#L397) was changed from the origin in my local tests, the stat checking doesn't seem to be needed. Edit: |
@palesz update here? |
closing due to inactivity, please reopen as needed |
Previously 'ipfs add -r .' created an ipfs node with the full
path of the directory as the root node (e.g.
C:\Users\someone\yourdatadirtoshare\ ), from now on, it won't
include the full path of the root directory in the ipfs nodes.