aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2016-08-13 01:03:07 +0200
committerLaurent Bachelier <laurent@bachelier.name>2016-08-13 01:03:07 +0200
commit0e8e381f4f421e2e7456d37d3b4d6bb7dcf59fbc (patch)
tree1c42fe57a2eeb89a129a6e6aa4cd533b5e4b5a62
parentFix typo (diff)
downloadbrutha-0e8e381f4f421e2e7456d37d3b4d6bb7dcf59fbc.tar.xz
Fix excluding directories in file list
-rw-r--r--brutha/directory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/brutha/directory.py b/brutha/directory.py
index a0f590e..f1ec746 100644
--- a/brutha/directory.py
+++ b/brutha/directory.py
@@ -24,7 +24,7 @@ class Directory(object):
if options:
self.options.update(options)
self._files = _files or \
- [f for f in os.listdir(self.path) if not os.path.isdir(f)]
+ [f for f in os.listdir(self.path) if not os.path.isdir(os.path.join(self.path, f))]
def commands(self):
commands = []