title: Android 4.4.2 File.mkdir() and mkdirs() are creating file instead of directory
body: <p>This question is not related to <a href="https://stackoverflow.com/questions/13953744/file-mkdir-and-mkdirs-are-creating-file-instead-of-directory">this question</a>. I have already seen it but it's SPECIFIC Android 4.4.2 issue as the code works fine on other versions of Android.</p>
  
  <pre><code>final File path = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/MY_Downloads");
  
          if (!path.exists()) {
              path.mkdir(); // also tried it with path.mkdirs();
              context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(path)));
          }
  </code></pre>
  
  <p>I am using this code it creates a <strong>FILE</strong> instead of a folder on Android 4.4.2. Please help I have already read this <a href="http://developer.android.com/reference/android/os/Environment.html" rel="nofollow noreferrer">article</a> </p>
  
  <p>I have given following permissions </p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
   &lt;uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" /&gt;
   &lt;uses-permission android:name="android.permission.WRITE_USER_DICTIONARY" /&gt;
   &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  </code></pre>
  
  <p>I know how to access SD-Card and the latest changes regarding public directory but I want to create a FOLDER instead of file</p>