'How to check file existance before upload to OneDrive using .Net or c#

I am going to upload my files from local PC to OneDrive using c#, I would need how to check the file existance before upload them.

Please suggest any has algorithm which is using by One Drive.

I have tried to create XORHash but it different.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source