Hidden files

Discussion in 'iOS Programming' started by lawicko, Nov 14, 2008.

  1. macrumors member

    Joined:
    Jul 17, 2008
    #1
    Hi!
    I created simple file browser for iPhone/iPod Touch. However, I discovered that there are some files (for example iTunesDB and all music synced through iTunes) that are not visible. I found nice tool named DiskAid, and it revealed these files when I plugged my iPod to my Mac and explored filesystem. Now I want to do the same with my file browser - I want to show hidden files just as DiskAid shows them.
    I looked through NSFileManager class, but I don't see anything that can help me with the task, so can anyone give me some clues how to reveal hidden files?
     
  2. macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #2
    Do you mean for browsing files on the device itself? The sandbox will prevent you from viewing almost everything unless the device has been jailbroken.
     
  3. thread starter macrumors member

    Joined:
    Jul 17, 2008
    #3
    Well, I can browse my device's filesystem using NSFileManager, so I guess you are wrong with the sandbox thing (Maybe I'm not allowed to write but I'm allowed to read, and that's all I need). The only problem I have is with hidden files and directories. My device is not jailbroken.
     
  4. macrumors 603

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #4
    Which OS version are you using? Apple accidentally allowed reading file directories outside the app's sandbox in 2.0, but said that they fixed that bug in 2.1 .


    .
     
  5. thread starter macrumors member

    Joined:
    Jul 17, 2008

Share This Page