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

mfs: fix copying into directory with no given filename #2977

Merged
merged 1 commit into from
Jul 19, 2016

Conversation

whyrusleeping
Copy link
Member

There was a bug where running ipfs files cp /something /adirectory/ would make a file with a zero length name inside /adirectory

License: MIT
Signed-off-by: Jeromy why@ipfs.io

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
@RichardLitt
Copy link
Member

LGTM.

@whyrusleeping
Copy link
Member Author

cc @Kubuxu for another review

@RichardLitt
Copy link
Member

@whyrusleeping I reviewed it technically, not just for my normal review. The Gocode looks solid.

Still, double might be good?

@whyrusleeping
Copy link
Member Author

👍 Thanks richard!

@whyrusleeping whyrusleeping merged commit 8165f76 into master Jul 19, 2016
@whyrusleeping whyrusleeping deleted the fix/files-cp branch July 19, 2016 15:35
@Kubuxu
Copy link
Member

Kubuxu commented Jul 19, 2016

I was reviewing that ...


test_expect_success "copy a file into a directory" '
ipfs files cp /foobar /adir/
'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test case could've been created from the get go. Let's test more thoroughly from the beginning.

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

Successfully merging this pull request may close these issues.

4 participants