UnauthorizedAccessException to Exception

This commit is contained in:
2dust 2024-12-18 15:27:00 +08:00
parent 23dd140921
commit 2b5cbb5e74

View file

@ -684,7 +684,7 @@ namespace ServiceLib.Common
File.Create(fileName).Close(); File.Create(fileName).Close();
File.Delete(fileName); File.Delete(fileName);
} }
catch (UnauthorizedAccessException) catch (Exception)
{ {
return false; return false;
} }