Skip to content

Ap 726 exclude files#80

Open
davezuckerman wants to merge 2 commits into
mainfrom
AP-726-exclude-files
Open

Ap 726 exclude files#80
davezuckerman wants to merge 2 commits into
mainfrom
AP-726-exclude-files

Conversation

@davezuckerman

Copy link
Copy Markdown
Contributor

No description provided.

if any(part.startswith(".") for part in relative_path.parts):
return False

if item.name.casefold() in {"thumbs.db"}:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I thought we wanted to make it configurable. Otherwise this seems like a decent enough implementation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I didn't see that in the ticket. Other than "." files and "Thumbs.db" I don't recall seeing other files we'd want to routinely exclude. Making it configurable wouldn't be hard but I won't have time to put that in along with test changes today. I'll be back Monday.

Could always be added later if needed though. It's only called by build_manifest though so probably not a big deal if other changes are merged first

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

let's break out the configurability into its own ticket; we can merge this PR and i'll pick that up next.

@steve-sullivan steve-sullivan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me.

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