Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 97fddb7

Browse files
authored
Merge pull request #31 from mathebox/fix-file-lookup
Fix subfolder traversal in 'file_exists'.
2 parents 42f7885 + d0327ce commit 97fddb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codacy/reporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def file_exists(rootdir, filename):
5555
return True
5656
else:
5757
for subFolder in subFolders:
58-
return file_exists(subFolder, filename)
58+
return file_exists(os.path.join(rootdir, subFolder), filename)
5959
return False
6060

6161

0 commit comments

Comments
 (0)