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
// Note: this is a quick check to avoid calling Path.GetFullPath when it's not necessary, since it can be expensive.
151
-
// It should cover the most common cases and avoid the overhead of Path.GetFullPath in those cases.
152
-
153
-
// Check for relative path segments "." and ".."
154
-
// In absolute path those segments can not appear in the beginning of the path, only after a path separator.
155
-
// This is not a precise full detection of relative segments. There is no false negatives as this might affect correctenes, but it may have false positives:
156
-
// like when there is a hidden file or directory starting with a dot, or on linux the backslash and dot can be part of the file name.
157
-
// In case of false positives we would call Path.GetFullPath and the result would still be correct.
0 commit comments