writeFileIfNotExistsWithMessages
writeFileIfNotExistsWithMessages(
filePath,content):boolean
Defined in: core/dist/utils/fileUtils.d.ts:68
No-clobber write: writes content only when filePath does not already exist.
Parameters
Section titled “Parameters”filePath
Section titled “filePath”string
content
Section titled “content”string
Returns
Section titled “Returns”boolean
true when the file was written, false when it was skipped because it
already existed. Callers use the return value to avoid claiming success on a skip.