We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b588786 commit 4993523Copy full SHA for 4993523
Sources/swift-utilities/String+Tools.swift
@@ -78,7 +78,7 @@ public extension String {
78
79
//https://stackoverflow.com/questions/27327067/append-text-or-data-to-text-file-in-swift
80
81
-extension String {
+public extension String {
82
func appendLineToURL(fileURL: URL) throws {
83
try (self + "\n").appendToURL(fileURL: fileURL)
84
}
@@ -89,7 +89,7 @@ extension String {
89
90
91
92
-extension Data {
+public extension Data {
93
func append(fileURL: URL) throws {
94
if let fileHandle = FileHandle(forWritingAtPath: fileURL.path) {
95
defer {
0 commit comments