---
title: "Discussion on \"List filenames recursively in a directory using this utility function.\" | Hashnode"
description: "Discussion on \"List filenames recursively in a directory using this utility function.\". In this article, we will review a function named listRecursively found in unbuild/src/utils.ts\nexport function listRecursively(path: string): string[] {\n  const filenames = new Set<string>();\n  const walk = (path: string): void => {\n    const files =..."
url: "https://hashnode.com/posts/list-filenames-recursively-in-a-directory-using-this-utility-function/6788c0ca88c331f6f7a87b27"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [List filenames recursively in a directory using this utility function.](https://thinkthroo.com/blog/list-filenames-recursively-in-a-directory-using-this-utility-function?utm_source=hashnode&utm_medium=feed)

In this article, we will review a function named listRecursively found in unbuild/src/utils.ts export function listRecursively(path: string): string\[\] { const filenames = new Set<string>(); const walk = (path: string): void => { const files =...

Jan 16, 2025 · 2 min read · thinkthroo.com  
Updated Apr 3, 2025  
Read the article

-   [#file-system](https://hashnode.com/tag/file-system)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#unbuild](https://hashnode.com/tag/unbuild)
-   [#recursive](https://hashnode.com/tag/recursive)

## Written by

[Ramu Narasinga](https://hashnode.com/@ramunarasinga)

@ramunarasinga · India

  
[View profile](https://hashnode.com/@ramunarasinga)

I study large open-source projects and create content about their codebase architecture and best practices, sharing it through articles, videos.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
