How do one know which folder is created by which Android apps? From my understanding, a majority of Android apps may have created some folders on either local storage or the SD Card.

So, how do I know which folders belong to which apps? (I know that some apps have settings that show you which folder that they have created but are there any solutions where one can easily find all the folder corresponding to their apps in a list similar like the one shown below?)


====================================
| Apps Name |   Folder             |
====================================
| ABB       | \sdcard\actionbb     |
| ZZX       | \sdcard\zoneX        |
|           | \local\zoneXconf     |
====================================


This is because, sometimes, when one un-installs an app, the un-installation does not remove these folders.
If you open a file as Context.MODE_PRIVATE, then the file is created in /data/data/app_packagename and is only accessible to your app. You can see the permission and owner of these files in command line.

adb shell ls -al

drwxr-x--x    1 app_28   app_28        2048 Dec  6  2011 com.android.mms


But files in sdcard is public to all user, so you cannot find out which folder belong to which app.


  Files saved to the external storage are world-readable and can be
  modified by the user when they enable USB mass storage to transfer
  files on a computer.


See this link for details.