Skip to content

Commit 2921045

Browse files
bites 116 - os and glob - fix glob
1 parent 89c01c0 commit 2921045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

116/files.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
def get_files(dirname, size_in_kb):
88
"""Return files in dirname that are >= size_in_kb"""
99
glob_pattern = os.path.join(dirname, '*')
10-
return [file for file in glob(dirname+"*") if os.path.getsize(file) >= ONE_KB*size_in_kb]
10+
return [file for file in glob(glob_pattern) if os.path.getsize(file) >= ONE_KB*size_in_kb]

0 commit comments

Comments
 (0)