summaryrefslogtreecommitdiff
path: root/anidb
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-09-11 20:13:56 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-09-11 20:13:56 +0200
commit57bb60d56cfba8567bf825bedafa24faea2a72de (patch)
tree1bbfcdc1709a55f41f0f1b7187cdf948a68725fd /anidb
parentc2f9ae0655deba118a49d0a6a9edf3145beaf703 (diff)
Fixed a typo in recursive search.
Diffstat (limited to 'anidb')
-rwxr-xr-xanidb2
1 files changed, 1 insertions, 1 deletions
diff --git a/anidb b/anidb
index 079bc07..795c3d4 100755
--- a/anidb
+++ b/anidb
@@ -97,7 +97,7 @@ while remaining:
if sub.startswith('.'):
continue
sub = os.path.join(name, sub)
- if os.path.isfile(name) and any(sub.endswith('.' + suffix) for suffix in options.suffix):
+ if os.path.isfile(sub) and any(sub.endswith('.' + suffix) for suffix in options.suffix):
files.append(sub)
elif os.path.isdir(sub):
remaining.appendleft(sub)