# Name of variable (file exists)

**URL:** <https://discourse.processing.org/t/name-of-variable-file-exists/38527>\
**Category:** Beginners\
**Created:** [August 27, 2022, 11:45pm UTC](https://discourse.processing.org/t/name-of-variable-file-exists/38527 "2022-08-27T23:45:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [August 28, 2022, 1:09am UTC](https://discourse.processing.org/t/name-of-variable-file-exists/38527/4 "2022-08-28T01:09:02Z")

</div>

I believe you should check out this [**listPaths()**](http://processing.github.io/processing-javadocs/core/processing/core/PApplet.html#listPaths-java.lang.String-java.lang.String...-) example:

> [@How do I slowly layer photos to appear on top of eachother?](https://discourse.processing.org/t/how-do-i-slowly-layer-photos-to-appear-on-top-of-eachother/36698/5):
>
> This example loads all images inside subfolder “data/” and assign them to a PImage[] array: framed_picture /\*\* \* Load All Images (v1.0.0) \* GoToLoop (2022/May/04) \* \* https://Discourse.Processing.org/t/ \* how-do-i-slowly-layer-photos-to-appear-on-top-of-eachother/36698/5 \*/ static final String PICS\_EXTS = "extensions=,png,jpg,jpeg,gif,tif,tiff,tga,bmp"; static final float FPS = .25; PImage[] images; void setup() { size(600, 500); frameRate(FPS); imageMode(CENTER); images =…

---

_[View the full topic](https://discourse.processing.org/t/name-of-variable-file-exists/38527)._
