Skip to content

Commit

Permalink
Remove tmp folder if existing
Browse files Browse the repository at this point in the history
  • Loading branch information
Manu098vm committed Dec 25, 2023
1 parent 6a54586 commit a8609c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TeraFinder.Plugins/Utils/ImportUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ public static bool ImportNews(SaveFile sav,
if (File.Exists(path))
if (Path.GetExtension(path).Equals(".zip"))
{
var tmp = $"{Path.GetDirectoryName(path)}\\tmp";
var tmp = Path.Combine(Path.GetDirectoryName(path)!,"tmp");
if (Directory.Exists(tmp))
DeleteFilesAndDirectory(tmp);
ZipFile.ExtractToDirectory(path, tmp);
path = tmp;
zip = true;
Expand Down

0 comments on commit a8609c6

Please sign in to comment.