# Incrementally move high-level path operations from shutil to pathlib

**URL:** <https://discuss.python.org/t/incrementally-move-high-level-path-operations-from-shutil-to-pathlib/19208>\
**Category:** Ideas\
**Created:** [September 17, 2022, 10:30pm UTC](https://discuss.python.org/t/incrementally-move-high-level-path-operations-from-shutil-to-pathlib/19208 "2022-09-17T22:30:17Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![barneygale](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/barneygale/32/1882_2.png) [@barneygale](https://discuss.python.org/u/barneygale)\
**Post date:** [September 20, 2022, 12:56pm UTC](https://discuss.python.org/t/incrementally-move-high-level-path-operations-from-shutil-to-pathlib/19208/10 "2022-09-20T12:56:14Z")

</div>

The path-like protocol _could_ be expanded once we add `AbstractPath`. It currently covers two use cases:

1. You need a string because you’re doing string manipulation (e.g. `os.path.join()`)
2. You need a string because you’re going to use an OS API (e.g. `os.readlink()`)

At the moment these use cases are unified, so there is no issue. When we introduce `AbstractPath` we may want to introduce the distinction in the API. See [this cloudpathlib issue](https://github.com/drivendataorg/cloudpathlib/issues/128) for more.

It’s not directly relevant to moving `shutil` things, but only indirectly via the association I’ve made with the `AbstractPath` work.

---

_[View the full topic](https://discuss.python.org/t/incrementally-move-high-level-path-operations-from-shutil-to-pathlib/19208)._
