Browse File

Hi all,

So I know I’ll prob. have to use .NET for this. But essentially, I want to be able to browse, or at least, get the names of all files in a the documents folder in an iPad or iPhone. I know you can test to see if a specific file exists, but I need to see all files in a folder.

Anyone know a specific function I should look into?

Thanks!

System.IO.GetFiles(). If you want a browser check this out. Although it works as-is on the iPhone, it’s not ideal that way since it’s using a desktop interface, but at least it gets you most of the way there.

–Eric

You’re the greatest! Thanks for the help!

Whilst on this topic,

How about how ipad and iphone store music. IS there an easy way to access that.
Im interested in being able to let the player select their own music if wanted…

-P

There is an easy way and it is actually the only way: through the Music Library functionality provided.

And the playback is also only possible through the media player, not through unity audio components

Sadly, if you’re using Unity 3 beta they removed ALL of the System.IO assembly. While it’s still present in then Mono library, the Unity linker gives an error making you incapable of building.

Sadly, if you’re using Unity 3 beta they removed ALL of the System.IO assembly. While it’s still present in then Mono library, the Unity linker gives an error making you incapable of building.

Its the beta so problems are to be expected especially with the major move from mono 1.2.5 to mono 2.6
it will require a lot of balancing and work till the supported stuff vs output size optimization reaches the old one.

one thing to though always check is that you use the full .net 2.0 assembly, not the subset, cause subset is kind of comparable to 1.1 + mscorlib stripping (all thats not deep core and/or basic is gone.)

Yes but it requires writing an iOS plugin. I managed to accomplish accessing the iOS music library and since many others are also asking for something similar I published it. Happy to answer any questions