Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lawicko

macrumors member
Original poster
Jul 17, 2008
44
0
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?
 

jnic

macrumors 6502a
Oct 24, 2008
567
0
Cambridge
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.
 

lawicko

macrumors member
Original poster
Jul 17, 2008
44
0
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.
 

firewood

macrumors G3
Jul 29, 2003
8,141
1,384
Silicon Valley
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 .


.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.