<#1925 Sanitize URIs for pathlib.Path constructors...
# flyte-github
a
#1925 Sanitize URIs for pathlib.Path constructors Pull request opened by mark-thm TL;DR In newer versions of fsspec, local path URIs seem to always have the
file://
protocol specified, but `pathlib.Path`'s constructor takes filesystem paths, not URIs, so flytekit is broken for the latest version of fsspec. Type ☑︎ Bug Fix ☐ Feature ☐ Plugin Are all requirements met? ☑︎ Code completed ☑︎ Smoke tested ☐ Unit tests added ☐ Code documentation added ☐ Any pending items have an associated Issue Complete description Replace every instance of
Path(uri)
with a wrapper function that sanitizes the
file://
prefix away before invoking the constructor. Tracking Issue flyteorg/flyte#4326 Follow-up issue NA flyteorg/flytekit ✅ All checks have passed 2/2 successful checks