More obnoxiously than that even, imo, it’s that pathlib removes trailing slashes. Its impossible (afaict) to reproduce path.join(‘a’, ‘b/‘) with pathlib
Your not suppose to worry about path segment separators as they are platform dependent. Use the library functions. So anywhere you hard code “/” is kind of questionable.
More obnoxiously than that even, imo, it’s that pathlib removes trailing slashes. Its impossible (afaict) to reproduce
path.join(‘a’, ‘b/‘)with pathlibYour not suppose to worry about path segment separators as they are platform dependent. Use the library functions. So anywhere you hard code “/” is kind of questionable.