Where to find new equivalent of applicationStorageDirectory

In the new Openfl 3, there seems to be no applicationStorageDirectory.

This used to be in openfl.filesystem.File, which no longer exists, and sys.io.File doesn’t contain this field. Grepping the code for applicationStorageDirectory only shows entries in _legacy.

I’m sure I found the answer to this in these forums a couple of weeks ago, but searching now I can’t find it. Does anyone know what the current equivalent is, or any other place the app can read and write arbitrary files? I realise this won’t work on all platforms.

It’s now lime.system.System.applicationStorageDirectory.

The following should work in OpenFL 3, for default, legacy and hybrid modes:

#if !lime_legacy
lime.system.System.applicationStorageDirectory;
#else
openfl.utils.SystemPath.applicationStorageDirectory;
#end

Great, thank you both very much!