# Can't access subfolder's in a processing project

**URL:** <https://discourse.processing.org/t/cant-access-subfolders-in-a-processing-project/25527>\
**Category:** Processing.py\
**Created:** [November 19, 2020, 8:56am UTC](https://discourse.processing.org/t/cant-access-subfolders-in-a-processing-project/25527 "2020-11-19T08:56:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [November 20, 2020, 2:10am UTC](https://discourse.processing.org/t/cant-access-subfolders-in-a-processing-project/25527/3 "2020-11-20T02:10:10Z")

</div>

> [@cornedb2](#):
>
> I’ve already tried **dataPath()** and **dataFile()** but without success.

> [@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/cant-access-subfolders-in-a-processing-project/25527)._
