Search code examples
directorystructuremobile-phones

Directory structure of Mobiles connected as USB pendrive


I need to find photos on external devices like cameras and mobiles connected as USB pendrive. As I don't want to traverse all disks, I thought of looking for specific folders under root or deeper, e.g. DCIM for cameras and start traverse from there.

For cameras the directory structure is specified in the Design rule for Camera File system (DCF) as always using a DCIM directory at root.

But for different mobile brands I did not find any rules. So can you please help me out and post the directory where your photos are stored in when you're mobile is connected as USB pendrive along with yout mobiles brand?

I'm looking for all major brands, like Nokia, LG, Samsung, Sony Erricson, etc. (IPhone connects as camera under 'camera and scanners', so I need to TWAIN it, but that works...)

Thanks a lot!


Solution

  • Lots of ways to get to the images.

    Device specific - Needs lots of hardware to test with. An easily unpalatable app could handle getting new devices supported.

    1. Check for known vendor/device id's on USB bus with related info on how to get to data. Some may have proprietary methods for extracting images.

    Drive based photos - traverse entire drive makes it future proof, however speed is bad.

    1. For each removable drive in system.
    2. Check for existence of "known" base folders
      • If found, traverse from base folder
      • Else, traverse entire drive

    TWAIN based photos - not a clue with these

    1. Lookup iphone, would this be for capturing new photos, or actually viewing previously captured photos