PhysicalFileProvider: Remove second try on GetFileLinkTargetLastWriteTimeUtc (#57136)
authorAdam Sitnik <adam.sitnik@gmail.com>
Wed, 11 Aug 2021 01:22:15 +0000 (03:22 +0200)
committerGitHub <noreply@github.com>
Wed, 11 Aug 2021 01:22:15 +0000 (18:22 -0700)
commit53b7ba9f1070182ef8381116ef58a32e2fa5901d
tree9bf6677905d786a04d86a40f2d754b596b1ef98a
parentc59d2005fc61b58365cd877c910642c477bb0a48
PhysicalFileProvider: Remove second try on GetFileLinkTargetLastWriteTimeUtc  (#57136)

* return the value from 2nd try

* Do not attempt a second try and just capture the FileNotFoundException

* Update src/libraries/Microsoft.Extensions.FileProviders.Physical/src/Internal/FileSystemInfoHelper.cs

Co-authored-by: David Cantu <dacantu@microsoft.com>
Co-authored-by: Dan Moseley <danmose@microsoft.com>
src/libraries/Microsoft.Extensions.FileProviders.Physical/src/Internal/FileSystemInfoHelper.cs