Skip to content

Commit 957190e

Browse files
Fix error due to misuse of Path.with_suffix
1 parent b3e1306 commit 957190e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nf_core/pipelines/download/download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ def download_workflow(self):
214214

215215
# Set an output filename now that we have the outdir
216216
if self.platform:
217-
self.output_filename = self.outdir.with_suffix(".git")
217+
self.output_filename = self.outdir.parent / (self.outdir.name + ".git")
218218
summary_log.append(f"Output file: '{self.output_filename}'")
219219
elif self.compress_type is not None:
220-
self.output_filename = self.outdir.with_suffix(self.compress_type)
220+
self.output_filename = self.outdir.parent / (self.outdir.name + "." + self.compress_type)
221221
summary_log.append(f"Output file: '{self.output_filename}'")
222222
else:
223223
summary_log.append(f"Output directory: '{self.outdir}'")

0 commit comments

Comments
 (0)