# The API of \`Path::exists()\` encourages broken code

**URL:** <https://internals.rust-lang.org/t/the-api-of-path-exists-encourages-broken-code/13817>\
**Category:** Uncategorized\
**Created:** [January 12, 2021, 12:16pm UTC](https://internals.rust-lang.org/t/the-api-of-path-exists-encourages-broken-code/13817 "2021-01-12T12:16:06Z")\
**Posts on this page:** 1\
**Showing post:** 46

<div class="post-metadata">

**Author:** ![Kixunil](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/kixunil/32/4110_2.png) [@Kixunil](https://internals.rust-lang.org/u/Kixunil)\
**Post date:** [March 16, 2021, 8:12am UTC](https://internals.rust-lang.org/t/the-api-of-path-exists-encourages-broken-code/13817/46 "2021-03-16T08:12:27Z")

</div>

FYI the `Path::try_exists()` PR was approved. [Tracking issue](https://github.com/rust-lang/rust/issues/83186)

---

_[View the full topic](https://internals.rust-lang.org/t/the-api-of-path-exists-encourages-broken-code/13817)._
