Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/PCLStorage.FileSystem.Desktop/DesktopFileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ public IFolder LocalStorage
#if ANDROID
var localAppData = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
#elif IOS
var documents = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
var localAppData = Path.Combine(documents, "..", "Library");
NSUrl[] urls = NSFileManager.DefaultManager.GetUrls(NSSearchPathDirectory.LibraryDirectory, NSSearchPathDomain.User);
if (urls == null || urls.Count() == 0) {
throw new Exception("Failed to find the folder; this should never happen.");
}
return urls[0].Path;
#else
var localAppData = System.Windows.Forms.Application.LocalUserAppDataPath;
#endif
Expand Down