Skip to content

Commit

Permalink
整理代码
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalPlatform committed Aug 23, 2022
1 parent 401cf5e commit bfda923
Show file tree
Hide file tree
Showing 7 changed files with 420 additions and 22 deletions.
10 changes: 9 additions & 1 deletion DigitalPlatform.Install/InstallHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,15 @@ public static void DeleteOldFiles(
&& IndexOf(excludeFileNames, line) != -1)
continue;
string path = Path.Combine(strTargetDir, line);
File.Delete(path);
try
{
File.Delete(path);
}
catch(DirectoryNotFoundException) // 2022/8/23
{

}

proc_deleted?.Invoke(path);
}

Expand Down
Loading

0 comments on commit bfda923

Please sign in to comment.