79157536

Date: 2024-11-05 02:56:52
Score: 0.5
Natty:
Report link

For anyone who's looking for a "Path" way to walk:

from pathlib import Path
p=Path("some_path_you_want_to_walk")
for dirName, subdirList, fileList in p.walk():
    print(dirName, subdirList, fileList)

First introduced in Python 3.12

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: CoreJa