mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +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
|
||||
- Repeater changed to use configured callbacks instead of a dumb event
|
||||
- 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
|
||||
### Added
|
||||
|
||||
@@ -42,8 +42,16 @@ namespace ICD.Common.Utils.IO
|
||||
if (path == null)
|
||||
throw new ArgumentNullException("path");
|
||||
|
||||
try
|
||||
{
|
||||
return File.Exists(path);
|
||||
}
|
||||
// Crestron's AdjustPathForMono method throws an exception that is inconsistent with Net Standard...
|
||||
catch (Exception)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
[PublicAPI]
|
||||
public static void Copy(string pathFrom, string pathTo)
|
||||
|
||||
Reference in New Issue
Block a user