-
Notifications
You must be signed in to change notification settings - Fork 10
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
Skip and report invalid filenames when syncing #366
Conversation
138394c
to
5a780fe
Compare
please add unit test |
d64996b
to
f05bf97
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a test case for invalid subfolder name which contains a valid filenames
|
||
assert reporter.has_warnings_or_errors() | ||
assert len(reporter.warnings) == 2 | ||
assert "has an invalid filename (file names must not contain '\\'). Skipping" in reporter.warnings[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please assert that not only explanation what is wrong to the user, but also filename with path is shown to them so they can go to the exact file and fix it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
20f039a
to
3075ae6
Compare
3075ae6
to
b71056b
Compare
b71056b
to
055c56c
Compare
This reverts commit 3517791.
b7f0a36
to
0774eb0
Compare
0774eb0
to
08212cc
Compare
Report invalid filenames when syncing and skip them, instead of crashing.