From abc9e49be214dfc814cc0b8dd74c40f8ec86d08a Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 11 Sep 2010 20:13:56 +0200 Subject: Fixed a typo in recursive search. --- anidb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'anidb') 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) -- cgit v1.2.3