Skip to content

Cleaned Bags Get Counted Incorrecly  #58

Description

@jfarbowitz

When I run --clean, it skips things that aren't bags, but then reports that they were cleaned successfully. Need to do something similar to what we did with validation.

(base) ponziChain:grabbags Jonathan$ grabbags --clean ~/Desktop/
2021-04-14 19:10:26,054 - WARNING - /Users/Jonathan/Desktop/test_data is not a bag. Not cleaning.
2021-04-14 19:10:26,055 - WARNING - /Users/Jonathan/Desktop/desktop is not a bag. Not cleaning.
2021-04-14 19:10:26,055 - WARNING - /Users/Jonathan/Desktop/a-bag is not a bag. Not cleaning.
2021-04-14 19:10:26,055 - WARNING - /Users/Jonathan/Desktop/parent-dir is not a bag. Not cleaning.
2021-04-14 19:10:26,055 - WARNING - /Users/Jonathan/Desktop/techfocus-vimeo is not a bag. Not cleaning.
2021-04-14 19:10:26,055 - INFO - 5 bags cleaned successfully

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions