Skip to content

Commit 732c1c9

Browse files
committed
Ignore errors when deleting temp directory
1 parent a112164 commit 732c1c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/FigmaExport/Subcommands/ExportImages.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ extension FigmaExportCommand {
205205
}
206206
try fileWritter.write(files: localFiles)
207207

208-
try FileManager.default.removeItem(at: tempDirectoryLightURL)
209-
try FileManager.default.removeItem(at: tempDirectoryDarkURL)
208+
try? FileManager.default.removeItem(at: tempDirectoryLightURL)
209+
try? FileManager.default.removeItem(at: tempDirectoryDarkURL)
210210
}
211211

212212
private func exportAndroidRasterImages(images: [AssetPair<ImagesProcessor.AssetType>], params: Params, logger: Logger) throws {
@@ -275,7 +275,7 @@ extension FigmaExportCommand {
275275
}
276276
try fileWritter.write(files: localFiles)
277277

278-
try FileManager.default.removeItem(at: tempDirectoryURL)
278+
try? FileManager.default.removeItem(at: tempDirectoryURL)
279279
}
280280

281281
/// Make array of remote FileContents for downloading images

0 commit comments

Comments
 (0)