-
Notifications
You must be signed in to change notification settings - Fork 630
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
Filtering extensions that FieReader can read #137
Conversation
Signed-off-by: ptredak <ptredak@nvidia.com>
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 make this case insensitive.
Signed-off-by: ptredak <ptredak@nvidia.com>
Done. |
for (const std::string& s : valid_extensions) { | ||
size_t pos = full_path.rfind(s); | ||
if (pos != std::string::npos && pos + s.size() == full_path.size()) { | ||
file_label_pairs->push_back(std::make_pair(full_path, label)); |
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.
Now lower case path is added to list, but FS is case sensitive and if there is any uppercase in the real path it would fail opening 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.
Facepalm. Yup, I will change that on Monday.
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.
Happens:)
Signed-off-by: ptredak <ptredak@nvidia.com>
* Filtering extensions that FieReader can read Signed-off-by: ptredak <ptredak@nvidia.com> * Make filtering case insensitive Signed-off-by: ptredak <ptredak@nvidia.com> * Change copy of full path to lowercase Signed-off-by: ptredak <ptredak@nvidia.com> Signed-off-by: Andrei <andreii@nvidia.com>
* Filtering extensions that FieReader can read Signed-off-by: ptredak <ptredak@nvidia.com> * Make filtering case insensitive Signed-off-by: ptredak <ptredak@nvidia.com> * Change copy of full path to lowercase Signed-off-by: ptredak <ptredak@nvidia.com> Signed-off-by: Andrei <andreii@nvidia.com>
Signed-off-by: ptredak ptredak@nvidia.com