By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 list.py

View raw Download
text/x-script.python • 187 B
Python script, ASCII text executable
        
            
1
#!/usr/bin/python3
2
3
with open("list.txt", "w") as f:
4
import os
5
for root, dirs, files in os.walk("."):
6
for name in files:
7
print(os.path.join(root, name), file=f)
8
9