Accessing different folders with PCLStorage

anveanve DEMember ✭✭✭
edited March 2016 in Xamarin.Forms

With the PCLStorage you can access the LocalStorage or RoamingStorage. Now I want to think in the iOS world: LocalStorage seems to be the Library folder. RoamingStorage gives me null. In the documentation there is not much help.

I want to access folders like NSBundle.MainBundle.BundlePath, Documents, Library/Caches, tmp and so on. You can perhaps work with .. to access another folder, but that wouldn't be a crossplatform solution.

How to work with PCLStorage so that I can access any folder I'd like? With the help of the DependencyService I could implement the separate paths.

Now I saw that there is a GetFileFromPathAsync. I think that should the way to go.

Sign In or Register to comment.