# How to list files in a dir in jupyterlab?

**URL:** <https://discourse.jupyter.org/t/how-to-list-files-in-a-dir-in-jupyterlab/22726>\
**Category:** Widgets\
**Tags:** community, jupyterlab, how-to, help-wanted\
**Created:** [December 5, 2023, 11:30am UTC](https://discourse.jupyter.org/t/how-to-list-files-in-a-dir-in-jupyterlab/22726 "2023-12-05T11:30:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terlan](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/terlan/32/11520_2.png) [@Terlan](https://discourse.jupyter.org/u/Terlan)\
**Post date:** [December 5, 2023, 11:30am UTC](https://discourse.jupyter.org/t/how-to-list-files-in-a-dir-in-jupyterlab/22726/1 "2023-12-05T11:30:51Z")

</div>

Hi, I want to be able to read directory and list all the files inside in my react widget. How can I achieve that? Thanks.
