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
Handle gcs cloud storage file extensions with versioning. #5156
Conversation
This way we can benefit from e.g. stripping away versioning information attached behind the actual extension, see also assimp#5156.
3fd59ef
to
5be4c72
Compare
This way we can benefit from e.g. stripping away versioning information attached behind the actual extension, see also assimp#5156.
5be4c72
to
d429081
Compare
This way we can benefit from e.g. stripping away versioning information attached behind the actual extension, see also assimp#5156.
I'm not sure this is a good idea. |
Thanks @turol I agree that |
d429081
to
1120c8d
Compare
This way we can benefit from e.g. stripping away versioning information attached behind the actual extension, see also assimp#5156.
1120c8d
to
60e26e8
Compare
This way we can benefit from e.g. stripping away versioning information attached behind the actual extension, see also assimp#5156.
60e26e8
to
86ee076
Compare
This way we can benefit from e.g. stripping away versioning information attached behind the actual extension, see also assimp#5156.
86ee076
to
6633e79
Compare
@kimkulling This PR depends on #5157. Once the other one is merged, I will update this one and let you know. |
5d394a1
to
de3913a
Compare
I haven't used C++ regex but have heard many people (even on the committee) call it bad. We probably don't want to use it. |
f000bbc
to
51f582c
Compare
Fine with me, too. |
00d2fda
to
129bf74
Compare
@kimkulling This one is ready for review now as well :) |
Just working on it. |
If I get it right hashes will only get filtered out when they re part of the extension. So for me this looks fine. Some unittests would be great to have. |
5c626b4
to
36f8d52
Compare
Yes, this is correct. I added a few unit tests as well. PTAL! |
584eb68
to
2bc6416
Compare
2bc6416
to
0e7cd18
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.
Looks fine to me.
Merged, thanks a lot for your contribution. |
If a user uses its own
IOSystem
/IOStream
for handling google cloud storage uris, with this PR the extension will still be correct. Together with #5157 the following will be supported without going over all possible importers and trying to detect the format: