title: react-native-fs [Error: Directory could not be created]
body: <p>I am trying to create a directory using <code>RNFS.mkdir</code>, but it's warning &quot;Directory could not be created&quot;...</p>
  <pre><code>&quot;react-native-fs&quot;: &quot;^2.18.0&quot;,
  &quot;react-native&quot;: &quot;0.64.0&quot;,
  </code></pre>
  <p>The function that I use to write is the following:</p>
  <pre><code>const phoneStorageDir = RNFS.ExternalStorageDirectoryPath + '/MyApp/pictures/';
  
  const createAppFolder = async () =&gt; {
    if (Platform.OS === 'android') {
      try {
        const granted = await PermissionsAndroid.request(
          PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE,
          {
            title: 'Permissions for write access',
            message: 'Give permission to your storage to write a file',
            buttonPositive: 'ok',
          },
        );
        if (granted === PermissionsAndroid.RESULTS.GRANTED) {
          await RNFS.mkdir(phoneStorageDir);
        } else {
          console.log('permission denied');
          return;
        }
      } catch (err) {
        console.warn(err);
        return;
      }
    }
  }
  </code></pre>
  <p>I've also added to it's manifest file:</p>
  <pre><code>&lt;uses-permission android:name=&quot;android.permission.READ_EXTERNAL_STORAGE&quot; /&gt;
  &lt;uses-permission android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot; /&gt;
  </code></pre>
  <p>And even added a prop on <code>&lt;application&gt;</code> tag <code>android:requestLegacyExternalStorage=&quot;true&quot;</code> as suggested by some other users, while I was searching for this...</p>
  <p>Another weird behaviour, is the fact that my app isn't asking for permissions (not even on physical device), although it's granted as soon as I compile the app, as follows:</p>
  <p><a href="https://i.stack.imgur.com/henh1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/henh1.png" alt="Sh*ts crazy" /></a></p>