fsfi

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 4141361459eef25c4ed5f8c749aa902954e98778
parent 29b3e73190371db6cae7c6fb26fa804b5da41e9e
Author: rsiddharth <s@ricketyspace.net>
Date:   Fri, 17 May 2019 21:36:17 -0400

bin/feed: files: Ignore backup files.

Diffstat:
bin/feed | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/bin/feed b/bin/feed @@ -48,7 +48,16 @@ def fok(f): def files(sec): - return os.scandir('md' + '/' + sec) + files = os.scandir('md' + '/' + sec) + + fs = [] + for f in files: + if not fok(f): + print('Ignoring {}'.format(f.path)) + else: + fs.append(f) + + return fs def read(f):