Pathlib – print contents of a folder
Print contents of a folder Question: Here is my example. Ex: I have a folder that contains another 3 folders (FoldA, FoldB, and FoldC), a .txt file, and a .png file. I have the following working code which works to print the contents a folder or directory. import pathlib rd = pathlib.Path("E:\Location\MainFolder") for td in …