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