Pathlib: preserve trailing slash

Then I would suggest something more explicit than a mere trailing slash, which is easy to omit or overlook. For example we could add a method Path.move_into(target_dir) or a function shutil.move_into(src, target_dir) that would error out if target_dir is not a directory.

4 Likes