title: file readallbytes against cloud drive throws cloud operation is invalid sometimes
body: <p>Using .net core 5.0.1 console app with c# and vs2019 enterprise on w10.  I'm writing an app that copies photos out of my icloud/iphoto drive using file.readallbytes and writes it to an external drive.  This is against unhydrated files that when accessed trigger the windows 'automatic file downloads'.</p>
  <p>Normally this works fairly well except I get random errors of 'the cloud operation is invalid' or 'cloud operation failed' with a timeout.  If I restart the app sometimes it works and sometimes it doesn't.  If I restart it enough eventually it will always get through the file and work.  Does anyone know why this is happening?</p>
  <p>This is the code I am using.  I added some exception and retry logic to the code itself</p>
  <pre><code>                    do
                      {
                          try
                          {
                              localfilebytes = File.ReadAllBytes(fullsourcefilename);        // this should force the cloud provider to send it over.
                              success = true;
                          }
                          catch (Exception ex1)
                          {
                              Console.WriteLine(&quot;Failed with :&quot; + ex1.Message);
                              retries--;
                          }
                      } while (!success &amp;&amp; (retries &gt; 0));
  
                      byte[] hash = MD5.Create().ComputeHash(localfilebytes);     // this will throw an exception if not set which is fine.
  </code></pre>
  <p>This happens more often against very large files (100megs+) but sometimes happens with average or tiny files as well.</p>
  <p>Why am I getting this error and how do I prevent it?  Is there another cloud api in windows I should be using to copy these files instead?</p>