# FS File Lister only works if exact filename in pattern

**URL:** <https://discourse.nodered.org/t/fs-file-lister-only-works-if-exact-filename-in-pattern/60996>\
**Category:** General\
**Created:** [8 April 2022 17:58 UTC](https://discourse.nodered.org/t/fs-file-lister-only-works-if-exact-filename-in-pattern/60996 "2022-04-08T17:58:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnnyPicnic](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/johnnypicnic/32/34787_2.png) [@JohnnyPicnic](https://discourse.nodered.org/u/JohnnyPicnic)\
**Post date:** [8 April 2022 17:58 UTC](https://discourse.nodered.org/t/fs-file-lister-only-works-if-exact-filename-in-pattern/60996/1 "2022-04-08T17:58:53Z")

</div>

If I use the pattern "asterisk.asterisk" I get no results. If I put in the exact filename I get a result.

Tried with FS-OPS filter "\*" and I get all files and folders found but I can't use that node as it doesn't return the whole file path.  
No Result:

 ![nores](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/a/ea6646c456ca9a193857f3074c144df23e1afe3d.png)  
Result:  
 ![res](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/c/1c411b6cc7a072a579227d9f92716bb070f41244.png)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [8 April 2022 18:19 UTC](https://discourse.nodered.org/t/fs-file-lister-only-works-if-exact-filename-in-pattern/60996/2 "2022-04-08T18:19:45Z")

</div>

Honestly, I think I need to retire that node. It hasn't been updated in ages and there are some known issues. I'd always intended to expand on it and create a small suite of utility nodes but I'm afraid that uibuilder kinda took over my available development time!

So I wouldn't recommend using it now.

Because the function node now supports npm modules, I would recommend using fast-glob if you want to get a list of files into a msg.

---

<div class="post-metadata">

**Author:** ![JohnnyPicnic](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/johnnypicnic/32/34787_2.png) [@JohnnyPicnic](https://discourse.nodered.org/u/JohnnyPicnic)\
**Post date:** [8 April 2022 18:44 UTC](https://discourse.nodered.org/t/fs-file-lister-only-works-if-exact-filename-in-pattern/60996/3 "2022-04-08T18:44:47Z")

</div>

So I accidentally grabbed the beta version of readdirp. Installed 3.3.0 and all is well.  
Thanks for your quick response. FS lives on!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [7 June 2022 18:45 UTC](https://discourse.nodered.org/t/fs-file-lister-only-works-if-exact-filename-in-pattern/60996/4 "2022-06-07T18:45:32Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
