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

Commit d0327ce

Browse files
committed
Fix subfolder traversal in 'file_exists'.
1 parent 42f7885 commit d0327ce

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)