Skip to content

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.

string

string

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.