I'm looking for a way to do a non-recursive os.walk() walk, just like os.listdir() works. But I need to return in the same way the os.walk() returns. Any idea?
os.walk()
os.listdir()
Thank you in advance.
next(os.walk(...))
1.4m articles
1.4m replys
5 comments
57.0k users