Skip to content

Commit

Permalink
Make public
Browse files Browse the repository at this point in the history
  • Loading branch information
gestrich committed Dec 9, 2021
1 parent b588786 commit 4993523
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/swift-utilities/String+Tools.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public extension String {

//https://stackoverflow.com/questions/27327067/append-text-or-data-to-text-file-in-swift

extension String {
public extension String {
func appendLineToURL(fileURL: URL) throws {
try (self + "\n").appendToURL(fileURL: fileURL)
}
Expand All @@ -89,7 +89,7 @@ extension String {
}
}

extension Data {
public extension Data {
func append(fileURL: URL) throws {
if let fileHandle = FileHandle(forWritingAtPath: fileURL.path) {
defer {
Expand Down

0 comments on commit 4993523

Please sign in to comment.