The UnauthorizedAccessException can be thrown due to insufficient access permissions when File.Copy is called.
I thought File.GetAccessControl is the right way to check for permissions. Unfortunately set of rules can allow copying and deny reading the permissions simultaneously.
So I came to the conclusion that trying to copy is the only way to check whether it's possible.
Persuade me that I'm wrong =)
View Complete Post