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

ipfs files rm recursive flag doesn't affect output #2378

Closed
RichardLitt opened this issue Feb 19, 2016 · 4 comments
Closed

ipfs files rm recursive flag doesn't affect output #2378

RichardLitt opened this issue Feb 19, 2016 · 4 comments

Comments

@RichardLitt
Copy link
Member

Using the recursive flag doesn't seem to change anything. I can remove a directory from the files API without needing to call it, and setting it as false doesn't mean I can't remove a directory.

Commands I ran

10:41 ~/src/http-api-spec (feature/files) * 🐕  ipfs files cp /ipfs/QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o /test
10:41 ~/src/http-api-spec (feature/files) * 🐕  ipfs files rm /test
10:41 ~/src/http-api-spec (feature/files) * 🐕  ipfs files ls /
here
10:41 ~/src/http-api-spec (feature/files) * 🐕  ipfs files cp /ipfs/QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o /test
10:41 ~/src/http-api-spec (feature/files) * 🐕  ipfs files rm /test --recursive=false
10:41 ~/src/http-api-spec (feature/files) * 🐕  ipfs files ls /
here
@daviddias
Copy link
Member

You are adding and removing a file called test, and ipfs files ls / is showing you one called 'here', which I'm guessing it is another file you add copied earlier

@RichardLitt
Copy link
Member Author

Sorry, I should have clarified. test is a directory. That it is not there when I ls / shows that it has been removed, regardless of the recursive flag.

@whyrusleeping
Copy link
Member

➜  ~ ipfs files mkdir /test
➜  ~ ipfs files ls /
cat
test
➜  ~ ipfs files rm /test
Error: /test is a directory, use -r to remove directories

I failed to repro

@RichardLitt
Copy link
Member Author

@whyrusleeping Thanks. Me too. Will try like this.

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

No branches or pull requests

3 participants