summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-05-17 21:37:41 -0400
committerrsiddharth <s@ricketyspace.net>2019-05-17 21:37:41 -0400
commit1b750da9b56deea6271913cb5f029727894811ec (patch)
tree022ce7f081610409e3de27d1339778c2df45007c /bin
parent492c3ef7d223763780ef08154c323cce1294d225 (diff)
bin/html: files: Ignore backup files.
Diffstat (limited to 'bin')
-rw-r--r--bin/html11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/html b/bin/html
index 6c545e5..c12b9bc 100644
--- a/bin/html
+++ b/bin/html
@@ -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):