Is there a use case for using `checkIfExists: fals...
# team-maintainers
s
Is there a use case for using
checkIfExists: false
when calling
file
?
n
--outdir
does not have to exist
j
file(blah, checkIfExists: false).text = “hello world”
Writing to a file?
👍 1
s
I was just thinking that the default should be changed to true
n
I'd disagree for code clarity personally
Plus in nf-schema already does an exists check so in those cases you'd rather not check for existence again
p
Checking file existence can be an expensive operation