Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: collectFile with newLine to use line endings found in the file(s) it is collecting #5790

Open
nh13 opened this issue Feb 13, 2025 · 1 comment

Comments

@nh13
Copy link

nh13 commented Feb 13, 2025

When using the collectFile, the files being collected may have a specific line ending (e.g. \n for unix, \r\n for windows), but adding a newLine uses System.lineSeparator. I would like the line ending used in collectFile to prioritize the line endings that are found in the file. A potential solution would be to inspect the bytes as they're being written to detect any line endings and use that.

@pditommaso
Copy link
Member

Nextflow assumes \n as line separate because it (officially) runs on linus/*nix only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants