We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd52d96 commit 98980fcCopy full SHA for 98980fc
1 file changed
useful_scripts/conc_gzip_files.py
@@ -17,7 +17,7 @@ def conc_gzip_files(in_dir, out_file, append=False):
17
write_mode = 'w'
18
if append:
19
write_mode = 'a'
20
- gzips = [os.path.join(in_dir, i) for i in os.listdir(in_dir) if i.endswith(i)]
+ gzips = [os.path.join(in_dir, i) for i in os.listdir(in_dir) if i.endswith('.gz')]
21
with open(out_file, write_mode) as ofile:
22
for f in gzips:
23
with gzip.open(f, 'rb') as gzipf:
0 commit comments