niok-android / ch.tutteli.niok / java.nio.file.Path / createFileIfNotExists

createFileIfNotExists

inline fun Path.createFileIfNotExists(vararg fileAttributes: FileAttribute<*>): Path (source)

Delegates to createFile and swallows a potential java.nio.file.FileAlreadyExistsException.