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 9a5e2b7 commit 0dadefeCopy full SHA for 0dadefe
Scripts/DowloadPortalItemData.swift
@@ -256,14 +256,9 @@ for portalItem in portalItems {
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
- if FileManager.default.fileExists(atPath: destinationURL.path) {
260
- do {
261
- print("note: Deleting directory: \(portalItem.identifier)")
262
- try FileManager.default.removeItem(at: destinationURL)
263
- } catch {
264
- print("error: Error deleting downloaded directory: \(error.localizedDescription)")
265
- exit(1)
266
- }
+ do {
+ try FileManager.default.removeItem(at: destinationURL)
+ print("note: Deleted directory: \(portalItem.identifier)")
267
}
268
269
do {
0 commit comments