title: “Could not find a part of the path” error in Android
body: <p>Before we start, I know that many posted similar questions, yet I can't solve my problem.</p>
  
  <p>I try to save a bitmap into the gallery of the Android device, yet I can't manage to get to that specific path.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>string root = Android.OS.Environment.ExternalStorageDirectory.AbsolutePath;
  Java.IO.File myDir = new Java.IO.File(root + "/Screenshots");
  myDir.Mkdirs();
  
  string fname = "test_picture.jpg";
  
  Java.IO.File file = new Java.IO.File(myDir, fname);
  if (file.Exists())
      file.Delete();
  try
  {
      FileStream outStream = new FileStream(file.Path, FileMode.OpenOrCreate); //Seems like the problem is here
      finalBitmap.Compress(Bitmap.CompressFormat.Jpeg, 100, outStream);
      outStream.Flush();
      outStream.Close();
  }
  catch (Exception e)
  {
      Toast.MakeText(Activity, e.ToString(), ToastLength.Long).Show();
  }
  </code></pre>
  
  <p>I get this error: </p>
  
  <blockquote>
    <p>System.IO.DirectoryNotFoundException: Could not find a part of the path "/storage/emulated/0/Screenshots/test_picture.jpg"</p>
  </blockquote>
  
  <p>What is wrong with the path? What is the origin of the error?</p>
  
  <p>P.S: I have given all the needed permissions.</p>