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

fix: ignore nonexistant when force rm #6773

Merged
merged 2 commits into from
Dec 2, 2019
Merged

Commits on Nov 25, 2019

  1. fix: ignore nonexistant when force rm

    - Make `ipfs files rm --force /nonexistant` succeed when the path does not exist.
    - Add shaness test for removing nonexistant paths
    - Refactor duplicated code to find a parent dir into a function
    
    I've been writing scripts against the files api, and having to stat things before removing them is a pain. So this PR aims to make --force do what I'd expect it to.
    
    License: MIT
    Signed-off-by: Oli Evans <oli@tableflip.io>
    olizilla committed Nov 25, 2019
    Configuration menu
    Copy the full SHA
    25694d0 View commit details
    Browse the repository at this point in the history
  2. fix: use if over switch

    License: MIT
    Signed-off-by: Oli Evans <oli@tableflip.io>
    olizilla committed Nov 25, 2019
    Configuration menu
    Copy the full SHA
    7fcf40e View commit details
    Browse the repository at this point in the history