diff options
| author | Dustin Mierau <mierau@users.noreply.github.com> | 2024-01-09 14:44:14 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-09 14:44:14 -0800 |
| commit | a2b7946804f5ab17ef1aebc4b5bb72e7cf14e83b (patch) | |
| tree | 218012a1565033fa89a862a34a0683a9fad3d39b /Hotline/Shared/URLAdditions.swift | |
| parent | f198d4d59b922e9cb872fe6831d3475c570fa56f (diff) | |
| parent | 60f90281bf971600733b2d72b747bcb6be9b1c31 (diff) | |
Merge branch 'main' into patch-1
Diffstat (limited to 'Hotline/Shared/URLAdditions.swift')
| -rw-r--r-- | Hotline/Shared/URLAdditions.swift | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Hotline/Shared/URLAdditions.swift b/Hotline/Shared/URLAdditions.swift index 7eebb46..1f25541 100644 --- a/Hotline/Shared/URLAdditions.swift +++ b/Hotline/Shared/URLAdditions.swift @@ -23,20 +23,4 @@ extension URL { return filePath } - -// private func prepareDownloadFile(name: String) -> Bool { -// let folderURL = FileManager.default.urls(for: .downloadsDirectory, in: .userDomainMask)[0] -// let filePath = findUniqueFilePath(base: name, at: folderURL) -// -// if FileManager.default.createFile(atPath: filePath, contents: nil) { -// if let h = FileHandle(forWritingAtPath: filePath) { -// self.filePath = filePath -// self.fileHandle = h -// self.fileProgress?.fileURL = URL(filePath: filePath).resolvingSymlinksInPath() -// return true -// } -// } -// -// return false -// } } |