9 lines
300 B
Python
9 lines
300 B
Python
import os, re
|
|
pat = re.compile(r'^\d{4}-\d{2}-\d{2}')
|
|
files = sorted(f for f in os.listdir('.') if f.endswith('.md'))
|
|
non = [f for f in files if not pat.match(f)]
|
|
print("total md:", len(files))
|
|
print("matching:", len([f for f in files if pat.match(f)]))
|
|
for f in non:
|
|
print("NONMATCH:", repr(f))
|