System.IO.Path.GetFileName returns null if the input is null. Pri.LongPath.Path.GetFileName used to do the same (since it simply delegated to System.IO.Path.GetFileName).
However it no longer does so, since it calls Path.NormalizeLongPath which throws if its input is null.
System.IO.Path.GetFileName
returnsnull
if the input isnull
.Pri.LongPath.Path.GetFileName
used to do the same (since it simply delegated toSystem.IO.Path.GetFileName
).However it no longer does so, since it calls
Path.NormalizeLongPath
which throws if its input is null.