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 0dadefe commit 7f3ac0cCopy full SHA for 7f3ac0c
Scripts/DowloadPortalItemData.swift
@@ -254,12 +254,8 @@ for portalItem in portalItems {
254
255
let destinationURL = downloadDirectoryURL.appendingPathComponent(portalItem.identifier, isDirectory: true)
256
257
- // Deletes the directory if it already exists.
258
- // This happens when the item is not in the plist and needs to be redownloaded.
259
- do {
260
- try FileManager.default.removeItem(at: destinationURL)
261
- print("note: Deleted directory: \(portalItem.identifier)")
262
- }
+ // Deletes the directory when the item is not in the plist.
+ try? FileManager.default.removeItem(at: destinationURL)
263
264
do {
265
// Creates an enclosing directory with portal item ID as its name.
0 commit comments