fun Path.newFile(file: String, vararg fileAttributes: FileAttribute<*>): Path
Resolve the given file and calls createDirectory.