diff --git a/Sources/FigmaExport/Subcommands/ExportImages.swift b/Sources/FigmaExport/Subcommands/ExportImages.swift index 628dca5b..ef8737fd 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