# Generative collage error

**URL:** <https://discourse.processing.org/t/generative-collage-error/45714>\
**Category:** Coding Questions\
**Created:** [February 6, 2025, 2:59am UTC](https://discourse.processing.org/t/generative-collage-error/45714 "2025-02-06T02:59:08Z")\
**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:** [February 6, 2025, 12:23pm UTC](https://discourse.processing.org/t/generative-collage-error/45714/3 "2025-02-06T12:23:21Z")

</div>

There’s a much simpler way to get all file paths within a folder using [**listPaths()**](http://processing.github.io/processing-javadocs/core/processing/core/PApplet.html#listPaths-java.lang.String-java.lang.String...-):

> [@Fading and Zoom (image slideshow)](https://discourse.processing.org/t/fading-and-zoom-image-slideshow/40812/30):
>
> This is a much simpler solution to load all images from a sketch’s “data/” folder via [listPaths()](http://processing.github.io/processing-javadocs/core/processing/core/PApplet.html#listPaths-java.lang.String-java.lang.String...-): file_folder

---

_[View the full topic](https://discourse.processing.org/t/generative-collage-error/45714)._
