Reputation: 27713
I want to check for paths that are too long once for a whole list and only then copy/create them...
So I thought this would be good:
try
{
FileInfo file = new FileInfo(path);
string temp = file.FullName;
}
catch { }
however, no exception is thrown then.
I rather not hardcode the limits because they might change, and I might be missing a limit...
So how can I check for long paths?
Upvotes: 3
Views: 4359