Skip to content

Instantly share code, notes, and snippets.

@mileskrains
mileskrains / list_data_files.py
Created September 6, 2017 18:17
list files in ../data/ and its subs #python #data
import os
data_files = []
fc=0
for path, dirs, files in os.walk('../data'):
print(path)
for f in files:
if not f.startswith('.'):
print(str(fc).ljust(8)+f)
fc += 1