Closed douglascomet closed 6 months ago
Just occurred to me, should filepath_from_url
raise or do nothing if a urlstr
does not have the file://
prefix? Same question if a url with a different scheme is provided?
Attention: 4 lines
in your changes are missing coverage. Please review.
Comparison is base (
d22935e
) 79.84% compared to head (1ad7b70
) 79.84%.
@douglascomet Does your latest commit resolve either of the conversations?
@douglascomet Does your latest commit resolve either of the conversations?
@meshula Yes, it will. Apologies for the delay with pushing this PR forward.
@douglascomet No need to apologize, I was just checking status, no urgency.
@douglascomet in response to:
Just occurred to me, should
filepath_from_url
raise or do nothing if a urlstr does not have the file:// prefix? Same question if a url with a different scheme is provided?
I would say it should not raise - the implication is that that is a relative URL. That does, however, imply that filepath_from_url
should maybe accepts something like a base_path
with is the filepath that paths can be relative to (usually this would be the path of parent dir the loaded otio file is in).
But I think this is out of scope for this PR.
This PR is a follow up to https://github.com/AcademySoftwareFoundation/OpenTimelineIO/pull/1664 to add support to
filepath_from_url
and tests for UNC paths.