Based upon behavior I was seeing on Windows with broken soft links, this needs to be more carefully considred.
One possibility is to use lstat instead of stat on the file, so that we don't follow soft links.
On Windows I saw that stat returned bogus data when attempting to process a broken soft link but I cannot confirm that this is always going to be the case. I do not know what the behavior is on Linux or Mac.
This work item is to investigate further and then plan out how we should handle this.
Based upon behavior I was seeing on Windows with broken soft links, this needs to be more carefully considred.
One possibility is to use
lstat
instead ofstat
on the file, so that we don't follow soft links.On Windows I saw that
stat
returned bogus data when attempting to process a broken soft link but I cannot confirm that this is always going to be the case. I do not know what the behavior is on Linux or Mac.This work item is to investigate further and then plan out how we should handle this.