We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c47f27b commit 84fd468Copy full SHA for 84fd468
Sources/FilestackSDK/Public/Models/FileLink.swift
@@ -182,8 +182,12 @@ public extension FileLink {
182
183
if let url = url {
184
do {
185
- try FileManager.default.removeItem(at: destinationURL)
+ if FileManager.default.fileExists(atPath: destinationURL.absoluteString) {
186
+ try FileManager.default.removeItem(at: destinationURL)
187
+ }
188
+
189
try FileManager.default.moveItem(at: url, to: destinationURL)
190
191
destURL = destinationURL
192
} catch {
193
err = error
0 commit comments