title: How to create files hierarchy in Androids '/data/data/pkg/files' directory?
body: <p>I try to create 'foo/bar.txt' in Android's /data/data/pkg/files directory.</p>
  
  <p>It seems to be a contradiction in docs:</p>
  
  <blockquote>
    <p>To write to a file, call Context.openFileOutput() with the name and path. </p>
  </blockquote>
  
  <p><a href="http://developer.android.com/guide/topics/data/data-storage.html#files" rel="noreferrer">http://developer.android.com/guide/topics/data/data-storage.html#files</a></p>
  
  <blockquote>
    <p>The name of the file to open; can not contain path separators.</p>
  </blockquote>
  
  <p><a href="http://developer.android.com/reference/android/content/Context.html#openFileOutput(java.lang.String,%20int)" rel="noreferrer">http://developer.android.com/reference/android/content/Context.html#openFileOutput(java.lang.String,%20int)</a></p>
  
  <p>And when I call</p>
  
  <pre><code>this.openFileOutput("foo/bar.txt", Context.MODE_PRIVATE);
  </code></pre>
  
  <p>exception is thrown:</p>
  
  <pre><code>java.lang.IllegalArgumentException: File foo/bar.txt contains a path separator
  </code></pre>
  
  <p>So how do I create file in subfolder?</p>