summaryrefslogtreecommitdiffstats
path: root/bin/html
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-05-17 21:37:22 -0400
committerrsiddharth <s@ricketyspace.net>2019-05-17 21:37:22 -0400
commit492c3ef7d223763780ef08154c323cce1294d225 (patch)
tree9e23c3db25e4f0fa4435ecd838f54f1d290f345d /bin/html
parent74a121e7671d231418edc5660787553044178cbb (diff)
bin/html: Add fok.
Diffstat (limited to 'bin/html')
-rw-r--r--bin/html9
1 files changed, 9 insertions, 0 deletions
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')