# The file is missing or Inaccessible

**URL:** <https://discourse.processing.org/t/the-file-is-missing-or-inaccessible/2996>\
**Category:** Coding Questions\
**Created:** [August 26, 2018, 5:30pm UTC](https://discourse.processing.org/t/the-file-is-missing-or-inaccessible/2996 "2018-08-26T17:30:06Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [December 27, 2018, 6:38pm UTC](https://discourse.processing.org/t/the-file-is-missing-or-inaccessible/2996/20 "2018-12-27T18:38:40Z")

</div>

> [@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/7):
>
> Yes! Just pass an empty string "" to dataPath(): dataFolderPath = this.dataPath('') + '/' print dataFolderPath … or to dataFile(): dir = this.dataFile('') dataFolderPath = dir.path + '/' print dataFolderPath However, if you need all files within the sketch’s “data/” folder, like all images for example, you can use listPaths(), passing the “data/” folder path + a string w/ all desired “extensions=,”: sunglasses PICS\_EXTS = 'extensions=,png,jpg,jpeg,gif,tif,tiff,tga,bmp,wbmp' dir = this.…

---

_[View the full topic](https://discourse.processing.org/t/the-file-is-missing-or-inaccessible/2996)._
