From 492c3ef7d223763780ef08154c323cce1294d225 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Fri, 17 May 2019 21:37:22 -0400 Subject: bin/html: Add fok. --- bin/html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/html b/bin/html index 503a254..6c545e5 100644 --- a/bin/html +++ b/bin/html @@ -26,6 +26,15 @@ def err(s): sys.exit(1) +def fok(f): + p = os.path.basename(f.path) + + if re.search(r'(^[\.\#])|(~$)', p): + return False + + return True + + def files(): return os.scandir('md/news') -- cgit v1.2.3