To recursively walk through the directory tree and get the path of each file in the tree, use the following code snippet:
Made by Anton Vasetenkov.
If you want to say hi, you can reach me on LinkedIn or via email. If you like my work, you can support me by buying me a coffee.