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.Delete(fileName);
}
catch (UnauthorizedAccessException)
catch (Exception)
{
return false;
}