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
{{ message }}
Repository navigation
Incorrect exception list in Path.GetFullPath documentation #13359
GetFullPath doesn't actually throw a PathTooLongException or SecurityException.
I initially opened a PR to add a length check, but as discussed there is no reliable way to validate a path before making a syscall, since the limits could be different on different filesystems and OS configurations.
I would like to update the XML documentation for Path.GetFullPath to reflect the actual behavior.
Additionally, there are several related methods that call GetFullPath and inherit PathTooLongException or SecurityException in their documentation from it without actually performing those checks:
FileInfo(string fileName) and DirectoryInfo(string path) constructors.
Activity
dovydenkovas commentedon Nov 18, 2026
Additionally, there are several related methods that call GetFullPath and inherit PathTooLongException or SecurityException in their documentation from it without actually performing those checks:
I could update the documentation for these APIs as well.