We write the year 2020: Pythonistas have largely adopted the use of the pathlib module as a more convenient way to perform file system operation that old stinkin os.path and its comrades.
Hence it would be great if all of pathspec function would accept Path objects or iterables thereof as arguments, compared to plain strings.
Putting a conversion to a string via str(my_path) at the right places is all it takes to make it work.
We write the year 2020: Pythonistas have largely adopted the use of the
pathlibmodule as a more convenient way to perform file system operation that old stinkinos.pathand its comrades.Hence it would be great if all of
pathspecfunction would accept Path objects or iterables thereof as arguments, compared to plain strings.Putting a conversion to a string via
str(my_path)at the right places is all it takes to make it work.