From 38e78e7757759ecc219556e943719ae2fd5f5609 Mon Sep 17 00:00:00 2001 From: Ben Sherman Date: Thu, 14 Nov 2024 09:44:59 -0600 Subject: [PATCH] Update docs Signed-off-by: Ben Sherman --- docs/reference/stdlib.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/reference/stdlib.md b/docs/reference/stdlib.md index 8c09f1ac96..d5478f0550 100644 --- a/docs/reference/stdlib.md +++ b/docs/reference/stdlib.md @@ -207,6 +207,9 @@ The following functions are available in Nextflow scripts: : Stop the pipeline execution and return an exit code and optional error message. `file( filePattern, [options] )` +: :::{versionchanged} 24.11.0-edge + The `file()` function should be used only to match a single file. Use `files()` to match a collection of files. In the future, `file()` will raise an error if it does not match exactly one file. + ::: : Get one or more files from a path or glob pattern. Returns a [Path](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/Path.html) or list of Paths if there are multiple files. : The following options are available: