You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove validation to stat call for symlinks since is a breaking change (#57551)
* Remove validation to stat call for symlinks since is a breaking change, subsequently remove the symlink cache logic as is no longer needed
* Undo try-catch workaround in PhysicalFileProvider
* Fix tests that were failing due to changes
// Tries to refresh the lstat cache (_fileCache) and, if the file is pointing to a symbolic link, then also the stat cache (_symlinkCache)
333
+
// Tries to refresh the lstat cache (_fileCache).
344
334
// This method should not throw. Instead, we store the results, and we will throw when the user attempts to access any of the properties when there was a failure
345
335
internalvoidRefreshCaches(ReadOnlySpan<char>path)
346
336
{
347
337
_isDirectory=false;
348
338
path=Path.TrimEndingDirectorySeparator(path);
349
339
350
340
// Retrieve the file cache (lstat) to get the details on the object, without following symlinks.
351
-
// If it is a symlink, then subsequently get details on the target of the symlink,
352
-
// storing those results separately. We only report failure if the initial
353
-
// lstat fails, as a broken symlink should still report info on exists, attributes, etc.
341
+
// If it is a symlink, then subsequently get details on the target of the symlink.
342
+
// We only report failure if the initial lstat fails, as a broken symlink should still report info on exists, attributes, etc.
0 commit comments