diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/html | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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') |