Files
swift-inotify/Tests/InotifyIntegrationTests/Utilities/createFile.swift
T

4 lines
137 B
Swift

func createFile(at path: String, contents: String = "") throws {
try contents.write(toFile: path, atomically: false, encoding: .utf8)
}