title: How to retrieve list of files from the local application folder which is in Xamarin.Forms project?
body: <p>I have one folder "MyFolder" created in my Xamarin.Forms project and there are few files inside that folder. How can I retrieve all the files which are in that folder?</p>
  
  <p>I tried below code but it's giving exception that Folder does not exist.</p>
  
  <pre><code>foreach (var file in System.IO.Directory.GetFiles("\\MyFolder"))
   {
  
   }
  </code></pre>
  
  <p>Even the below code is giving the same error.</p>
  
  <pre><code>string folderPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "MyFolder");
  
   foreach (var file in System.IO.Directory.GetFiles(folderPath))
   {
  
   }
  </code></pre>