From 70f97d275cf7553773d685b16416c82866d3b299 Mon Sep 17 00:00:00 2001 From: Pavlos Ratis Date: Sat, 1 Mar 2014 19:56:15 +0200 Subject: [PATCH] filter output with seed files only --- gkeys/actions.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gkeys/actions.py b/gkeys/actions.py index 8d381db..85c0e0e 100644 --- a/gkeys/actions.py +++ b/gkeys/actions.py @@ -284,7 +284,10 @@ class Actions(object): def listseedfiles(self, args): + seedfile = [] seedsdir = self.config.get_key('seedsdir') - files = os.listdir(seedsdir) + for files in os.listdir(seedsdir): + if files.endswith('.seeds'): + seedfile.append(files) return {"Seed files found at path: %s\n %s" - % (seedsdir, "\n ".join(files)): True} + % (seedsdir, "\n ".join(seedfile)): True} -- 2.26.2