diff options
author | rsiddharth <s@ricketyspace.net> | 2019-05-17 21:37:41 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2019-05-17 21:37:41 -0400 |
commit | 1b750da9b56deea6271913cb5f029727894811ec (patch) | |
tree | 022ce7f081610409e3de27d1339778c2df45007c | |
parent | 492c3ef7d223763780ef08154c323cce1294d225 (diff) |
bin/html: files: Ignore backup files.
-rw-r--r-- | bin/html | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -36,7 +36,16 @@ def fok(f): def files(): - return os.scandir('md/news') + files = os.scandir('md/news') + + fs = [] + for f in files: + if not fok(f): + print('Ignoring {}'.format(f.path)) + else: + fs.append(f) + + return fs def read(f): |