Aug-16-2022, 07:22 AM
sorry for my bad English,
currently i looking all files in a folder and subfolder like "dir /s /b" in windows-cmd
Note:
I know code
currently i looking all files in a folder and subfolder like "dir /s /b" in windows-cmd
D:\test>dir /s /b D:\test\test D:\test\test (2).py D:\test\test.py D:\test\test\test.pyis there any equal syntax like this in python?
Note:
I know code
import os for text in os.listdir(): print(text)but that only show files name, I need full path