Skip to content

Commit 98980fc

Browse files
committed
Update conc_gzip_files.py
1 parent dd52d96 commit 98980fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

useful_scripts/conc_gzip_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def conc_gzip_files(in_dir, out_file, append=False):
1717
write_mode = 'w'
1818
if append:
1919
write_mode = 'a'
20-
gzips = [os.path.join(in_dir, i) for i in os.listdir(in_dir) if i.endswith(i)]
20+
gzips = [os.path.join(in_dir, i) for i in os.listdir(in_dir) if i.endswith('.gz')]
2121
with open(out_file, write_mode) as ofile:
2222
for f in gzips:
2323
with gzip.open(f, 'rb') as gzipf:

0 commit comments

Comments
 (0)