From 732c1c9bf5087b5989d3164a38865f0138342116 Mon Sep 17 00:00:00 2001 From: Daniil Subbotin Date: Mon, 30 Nov 2020 16:12:54 +0300 Subject: [PATCH] Ignore errors when deleting temp directory --- Sources/FigmaExport/Subcommands/ExportImages.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/FigmaExport/Subcommands/ExportImages.swift b/Sources/FigmaExport/Subcommands/ExportImages.swift index 628dca5..ef8737f 100644 --- a/Sources/FigmaExport/Subcommands/ExportImages.swift +++ b/Sources/FigmaExport/Subcommands/ExportImages.swift @@ -205,8 +205,8 @@ extension FigmaExportCommand { } try fileWritter.write(files: localFiles) - try FileManager.default.removeItem(at: tempDirectoryLightURL) - try FileManager.default.removeItem(at: tempDirectoryDarkURL) + try? FileManager.default.removeItem(at: tempDirectoryLightURL) + try? FileManager.default.removeItem(at: tempDirectoryDarkURL) } private func exportAndroidRasterImages(images: [AssetPair], params: Params, logger: Logger) throws { @@ -275,7 +275,7 @@ extension FigmaExportCommand { } try fileWritter.write(files: localFiles) - try FileManager.default.removeItem(at: tempDirectoryURL) + try? FileManager.default.removeItem(at: tempDirectoryURL) } /// Make array of remote FileContents for downloading images