From 0443ba5b9fa490cb3c8872f8cddaef617b3e48ca Mon Sep 17 00:00:00 2001 From: Deterous <138427222+Deterous@users.noreply.github.com> Date: Mon, 4 Dec 2023 23:40:46 +1300 Subject: [PATCH] Fix info command when not given outpath --- IRDKit/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IRDKit/Program.cs b/IRDKit/Program.cs index 5ccad72..2866d53 100644 --- a/IRDKit/Program.cs +++ b/IRDKit/Program.cs @@ -135,7 +135,8 @@ namespace IRDKit case InfoOptions opt: // Clear the output file path if it exists - File.Delete(opt.OutPath); + if (opt.OutPath != null) + File.Delete(opt.OutPath); // If directory, search for all ISOs in current directory if (Directory.Exists(opt.InPath))