title: Get the content of iCloud Drive
body: <p>In my viewDidLoad, I need to verify if the files that I saved to the iCloud Drive are still available and have not been deleted. As I have read, I can not use standard FileManager calls:<br></p>
  
  <pre><code>FileManager.default.fileExists(atPath: filePath)
  </code></pre>
  
  <p>What would be the alternative. I do use NSMetadataQuery, but I wanted to know if there is an easy way to query the content of the App's UbiquitousDocument prior to the notifications kicking in.</p>
  
  <p>Also, I am using the ios11 facility of sharing files between different users, and again I need to be able to verify if those files are still available when my App comes to the foreground. Using the NSMetadataQuery and searching in NSMetadataQueryUbiquitousDocumentsScope the shared documents are not displayed. <br>
  Any suggestions<br>
  Best<br>
  Reza</p>