# Could tempfile.TemporaryFile and tempfile.TemporaryDirectory be PathLike?

**URL:** <https://discuss.python.org/t/could-tempfile-temporaryfile-and-tempfile-temporarydirectory-be-pathlike/59092>\
**Category:** Ideas\
**Created:** [July 24, 2024, 11:46pm UTC](https://discuss.python.org/t/could-tempfile-temporaryfile-and-tempfile-temporarydirectory-be-pathlike/59092 "2024-07-24T23:46:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![MegaIng](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/megaing/32/16162_2.png) [@MegaIng](https://discuss.python.org/u/MegaIng)\
**Post date:** [July 24, 2024, 11:51pm UTC](https://discuss.python.org/t/could-tempfile-temporaryfile-and-tempfile-temporarydirectory-be-pathlike/59092/2 "2024-07-24T23:51:34Z")

</div>

See [Implement os.PathLike for NamedTemporaryFile](https://discuss.python.org/t/implement-os-pathlike-for-namedtemporaryfile/57200)

---

_[View the full topic](https://discuss.python.org/t/could-tempfile-temporaryfile-and-tempfile-temporarydirectory-be-pathlike/59092)._
