determine wheteher android asset entry is a file or directory
<p>Hej,</p>

<p>I have some data shipped out with the app which shall be copied on the external storage. It's nested in a couple of subfolders and I'd like to copy the whole structure.</p>

<p>I'm having a hard time getting a File object for any ressource in <code>/assets</code>. But I think I'm depended on that 'cause I need something like File.isDirectory() to determine if I have to start copying or dive deeper into the system.</p>

<p>My first approach was using <a href="http://developer.android.com/reference/android/content/res/AssetManager.html" rel="nofollow">Assets Manager</a> but it seems that class is not providing the information I need. The most promising why was to obtain an <code>AssetFileDescriptor</code>and go down to a <code>[FileDescriptor][2]</code>. However non of them seems to have a <code>isDirectory</code>-method.</p>

<p>So my other approach is straight forward: Creating a File Object and be happy. However it seems like I'm running in this problem of lacking a proper path to instance the file object. I'm aware of <code>file://android_asset</code> but it doesn't seem to work for the <code>file</code>constructor.</p>

<p>My last idea would to utilise the InputStream (which I need for copying anyway) and somehow filter the byte for a significant bit which indicates this resource to be a directory. That's a pretty hacky solution and probably right in the hell of ineffectiveness but I don't see another way to get around that.</p>
