Re: If this had happened in the US or Canada, at the border
Check your facts. The US Border and Customs agents are fully able to copy your data for further, more detailed analysis. They do it often...
Read about what they do via the EFF: https://www.eff.org/wp/defending-privacy-us-border-guide-travelers-carrying-digital-devices