From 65b7dfe3451dcc8b1e575a444b8df71a4d012f0f Mon Sep 17 00:00:00 2001 From: delfiterradas Date: Thu, 30 Jul 2026 15:14:00 +0200 Subject: [PATCH 1/3] Create temp file avoiding errors with write permissions in workdir --- workflows/datasync.nf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/workflows/datasync.nf b/workflows/datasync.nf index 7f64a97..a601e0d 100644 --- a/workflows/datasync.nf +++ b/workflows/datasync.nf @@ -106,7 +106,10 @@ workflow DATASYNC { .collect { it.readLines() } .inject { a, b -> a.intersect(b) } - def copy_files = file("${workDir}/${meta.id}_files_to_copy.txt") + def copy_files = java.nio.file.Files.createTempFile( + "${meta.id}_files_to_copy_", + ".txt" + ) copy_files.text = common.join('\n') + '\n' tuple(meta, copy_files) From 790b8fe8be8972bc4116e38846acd336130bf9c0 Mon Sep 17 00:00:00 2001 From: delfiterradas Date: Thu, 30 Jul 2026 15:22:11 +0200 Subject: [PATCH 2/3] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 739d9d0..050aa02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Initial release of nf-core/datasync, created with the [nf-core](https://nf-co.re - [[#49](https://github.com/nf-core/datasync/pull/49)] - Install `RCLONE_CHECK` and `RCLONE_CHECKSUM` modules from nf-core ([@delfiterradas](https://github.com/delfiterradas), review by [@atrigila](https://github.com/atrigila) and [@antoniasaracco](https://github.com/antoniasaracco)). ### `Fixed` +- [[#73](https://github.com/nf-core/datasync/pull/73)] - Create tmp `files_to_copy.tx` avoiding error with write permissions in work directory ([@delfiterradas](https://github.com/delfiterradas), review by [@atrigila](https://github.com/atrigila) and [@antoniasaracco](https://github.com/antoniasaracco)). ### `Dependencies` From 05b139e6f70cd625fd0ca1bdf63f3244fe372780 Mon Sep 17 00:00:00 2001 From: delfiterradas Date: Thu, 30 Jul 2026 15:23:56 +0200 Subject: [PATCH 3/3] Fix linting --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 050aa02..852306a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Initial release of nf-core/datasync, created with the [nf-core](https://nf-co.re - [[#49](https://github.com/nf-core/datasync/pull/49)] - Install `RCLONE_CHECK` and `RCLONE_CHECKSUM` modules from nf-core ([@delfiterradas](https://github.com/delfiterradas), review by [@atrigila](https://github.com/atrigila) and [@antoniasaracco](https://github.com/antoniasaracco)). ### `Fixed` + - [[#73](https://github.com/nf-core/datasync/pull/73)] - Create tmp `files_to_copy.tx` avoiding error with write permissions in work directory ([@delfiterradas](https://github.com/delfiterradas), review by [@atrigila](https://github.com/atrigila) and [@antoniasaracco](https://github.com/antoniasaracco)). ### `Dependencies`