summaryrefslogtreecommitdiff
path: root/summain
diff options
context:
space:
mode:
Diffstat (limited to 'summain')
-rwxr-xr-xsummain2
1 files changed, 1 insertions, 1 deletions
diff --git a/summain b/summain
index a9e7ead..b82c108 100755
--- a/summain
+++ b/summain
@@ -122,7 +122,7 @@ class Summain(cliapp.Application):
'choose output format (rfc822, csv, json)')
def files(self, root):
- if os.path.isdir(root):
+ if os.path.isdir(root) and not os.path.islink(root):
for dirname, dirnames, filenames in os.walk(root):
yield dirname
dirnames.sort()