<#5384 [Core feature] Replace `os.path` with `path...
# flytekit
a
#5384 [Core feature] Replace `os.path` with `pathlib` for flytekit Issue created by MortalHappiness ### Motivation: Why do you think this is important? pathlib is a more modern way to do path manipulation since Python 3.4. Currently flytekit mixes usage of
os.path
and
pathlib
, which makes the code harder to read. ### Goal: What should the final outcome look like, ideally? Using the correspondance table to replace all
os.path
with
pathlib
except for some low level string operations that do not have a counterpart in
pathlib
. For example,
os.path.sep
. ### Describe alternatives you've considered Replace all
pathlib
with
os.path
. This can also prevent the mixed usage of
os.path
and
pathlib
but it is not recommended. ### Propose: Link/Inline OR Additional context No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte