# Check if file exists or not

**URL:** <https://discourse.processing.org/t/check-if-file-exists-or-not/39317>\
**Category:** Beginners\
**Created:** [October 17, 2022, 12:17pm UTC](https://discourse.processing.org/t/check-if-file-exists-or-not/39317 "2022-10-17T12:17:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [October 17, 2022, 1:40pm UTC](https://discourse.processing.org/t/check-if-file-exists-or-not/39317/2 "2022-10-17T13:40:09Z")

</div>

Hi

> [@How to check if a file is exist in data folder by code?](https://discourse.processing.org/t/how-to-check-if-a-file-is-exist-in-data-folder-by-code/589):
>
> I have to check if a file is exist in data folder while the code is running. How to achieve that function?

---

_[View the full topic](https://discourse.processing.org/t/check-if-file-exists-or-not/39317)._
