R
R
Reikoni2021-08-16 23:05:15
Python
Reikoni, 2021-08-16 23:05:15

How to display all nested files in a directory tree?

Hello. There is a task - you need to display absolutely all the files in the specified path while parsing subfolders and output files from there too.

That is, if there is such a tree:
"TestMain - images - gold.png ; logo - logimy.png"

Then it will output:
"TestMain/images/gold.png"
"TestMain/images/logo/logimy.png"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-08-16
@ifullut

https://docs.python.org/3/library/os.html#os.walk

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question