mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
fix: Handling a Crestron bug where File.Exists throws an exception on 4-Series instead of returning false
This commit is contained in:
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
### Changed
|
### Changed
|
||||||
- Repeater changed to use configured callbacks instead of a dumb event
|
- Repeater changed to use configured callbacks instead of a dumb event
|
||||||
- Scheduled action callbacks allow a TimeSpan to be returned to delay actions
|
- Scheduled action callbacks allow a TimeSpan to be returned to delay actions
|
||||||
|
- Handling a Crestron bug where File.Exists throws an exception on 4-Series instead of returning false
|
||||||
|
|
||||||
## [13.0.0] - 2020-09-03
|
## [13.0.0] - 2020-09-03
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -42,7 +42,15 @@ namespace ICD.Common.Utils.IO
|
|||||||
if (path == null)
|
if (path == null)
|
||||||
throw new ArgumentNullException("path");
|
throw new ArgumentNullException("path");
|
||||||
|
|
||||||
return File.Exists(path);
|
try
|
||||||
|
{
|
||||||
|
return File.Exists(path);
|
||||||
|
}
|
||||||
|
// Crestron's AdjustPathForMono method throws an exception that is inconsistent with Net Standard...
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
|
|||||||
Reference in New Issue
Block a user